Vicky Stamatopoulou on 1. August 2011
Report template options are saved in the /Contents/info.plist within a Merlin‘s report template package and shown in the order they are defined. Therefor, should you want to add another option for your custom report:
Note: Use existing options as reference on how to define checkboxes, lists, or text entry fields
Some examples:
1. You have created a copy of the existing Next Due Activities report (as explained here) and want to add an option to disable the “Group” column in the outputted table.
Your workflow
<dict>
<key>key</key>
<string>withGroup</string>
<key>title</key>
<string>Group</string>
<key>valueClass</key>
<string>NSNumber</string>
<key>style</key>
<string>bool</string>
<key>defaultValueString</key>
<string>0</string>
</dict>

Note: A defaultValueString of 1 means that this option is on per default. You may enter a 0 if you want this option to be off.
param name="withProjectImage"
<xsl:param name=”withGroup”/>
<th>Group</th>
<xsl:if test="$withGroup = 1"><th>Group</th></xsl:if>

<td width="18%"><xsl:value-of select="../title"/></td>
<xsl:if test="$withGroup = 1">
<td width="18%"><xsl:value-of select="../title"/></td>
</xsl:if>
Note: There are 2 rows to change. Once the table outputting when <xsl:if test=”$showResource = ” “> and a second time for <xsl:if test=”$showResource != ” “>

2. You have created a copy of the existing Cost Distribution report (as explained here) and want to add an option to disable the “Group” column in the outputted table.
See next blog post for the workflow
______
Related Posts:
RSS feed for comments on this post. TrackBack URL
[...] See one of next blog posts [...]
[...] Proceed as explained here [...]
[...] add a new option with the name withNotes as explained here in [...]
[...] Adding an option in a report template – example for xslt report [...]
[...] How to add an option in an xslt report template [...]
[...] How to add an option in an xslt report template [...]
[...] How to add an option in an xslt report template [...]
[...] How to add an option in an xslt report template [...]
[...] How to add an option in an xslt report template [...]
Hello Gentlemen, does anybody know about a merlin report builder interface with no manually editing xml file. Any plan for merlin 3 about it ? really missing it
Thanks a lot
Ed
Thanks for your comment Ed.
Current reports concept of Merlin is indeed not that comfortable and rather technical when it comes to customizing. It will certainly be better and easier in the next major update. An ETA is however at this time point not available.
Best regards, Vicky
[...] How to add an option in an xslt report template [...]
[...] How to add an option in an xslt report template [...]
[...] How to add an option in an xslt report template [...]
[...] How to add an option in an xslt report template [...]
[...] How to add an option in an xslt report template [...]
[...] How to add an option in an xslt report template [...]
[...] How to add an option in an xslt report template [...]