8,849
edits
Changes
→Variables
''Example'': Our report prompts the user for two criteria:<br />
[[Image:CriteriaTemplate-CriteriaSetInReportCriteriaSetInReportSimple.png|link=]]
When we run the report, we see the following criteria prompt:<br />
In the [[Creating a Basic Report|Edit Report Page]], we switch to the [[Report Template]] tab and enter the following in the ''Criteria Template'' section:<br />
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><table> <tr> <th class=Sub> @arg1.label@ </th> <td> @arg1@ </td> </tr> <tr> <th class=Sub> @arg2.label@ </th> <td> <input type=text id=@arg2.id@ name=@arg2.id@ value="@me.firstname@"> </td> </tr> <tr> <td colspan=2 class=Submit> @submitbutton@ @exportbutton@ </td> </tr></table></pre><!--[[Image:CriteriaTemplate-SampleCriteriaTemplate.png|link=]]-->
Notice that the first criteria is left unchanged. The second criteria is where we create our own HTML input element and define it as the second criteria. The ''value'' is defaulted to the user's first name.<br />
Note also that the @submitbutton@ and @exportbutton@ variables in the new ''Criteria Template'' expose the ''Submit'' and ''Export'' buttons on the page.
==Variables==
* @fileexportbutton@
==Notes==