Koha/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports
Paul Poulain 7d8b369ba4 Improved guided reports (#3929)
added runtime parameters for guided reports. Online help:

Can I have run-time defined parameters?

Yes, you can: there is a specific syntax that Koha will understand as 'ask for values when running the report'. The syntax is <<Question to ask|authorised_value>>.

The << and >> are just delimiters. You must put << at the beginning and >> at the end of your parameter
The Question to ask will be displayed on the left of the string to enter.
The authorised_value can be omitted if not applicable. If it contains an authorised value category, or <strong>branches</strong> or <strong>itemtype</strong> or <strong>categorycode</strong>, a list with the Koha authorised values will be displayed instead of a free field

Note that you can have more than one parameter in a given SQL
Note that entering nothing at run time won't probably work as you expect. It will be considered as "value empty" not as "ignore this parameter". For example entering nothing for : "title=&lt;&lt;Enter title&gt;&gt;" will display results with title='' (no title). If you want to have to have something not mandatory, use "title like &lt;&lt;Enter title&gt;&gt;" and enter a % at run time instead of nothing
Sample :
SELECT surname,firstname FROM borrowers WHERE branchcode=&lt;&lt;Enter patrons library|branches&gt;&gt; AND surname like &lt;&lt;Enter filter for patron surname (% if none)&gt;&gt;
2010-01-28 15:11:46 +01:00
..
acquisitions_stats.tmpl Updated Help Files - Part 4 2009-08-15 09:31:43 -04:00
bor_issues_top.tmpl Complete sweep of help files in order to correct invalid markup and fix Bug 2444(break up long lines in templates). 2008-08-01 14:33:28 -05:00
borrowers_out.tmpl Complete sweep of help files in order to correct invalid markup and fix Bug 2444(break up long lines in templates). 2008-08-01 14:33:28 -05:00
borrowers_stats.tmpl Updated Help Files - Part 4 2009-08-15 09:31:43 -04:00
cat_issues_top.tmpl Complete sweep of help files in order to correct invalid markup and fix Bug 2444(break up long lines in templates). 2008-08-01 14:33:28 -05:00
catalogue_out.tmpl Complete sweep of help files in order to correct invalid markup and fix Bug 2444(break up long lines in templates). 2008-08-01 14:33:28 -05:00
catalogue_stats.tmpl Updated Help Files - Part 4 2009-08-15 09:31:43 -04:00
dictionary.tmpl Updated help files 2009-09-29 19:16:20 -04:00
guided_reports.tmpl Improved guided reports (#3929) 2010-01-28 15:11:46 +01:00
issues_avg_stats.tmpl Complete sweep of help files in order to correct invalid markup and fix Bug 2444(break up long lines in templates). 2008-08-01 14:33:28 -05:00
issues_stats.tmpl changing title of help back to Circulation Statistics for consistency 2009-12-31 10:58:04 +01:00
itemslost.tmpl Complete sweep of help files in order to correct invalid markup and fix Bug 2444(break up long lines in templates). 2008-08-01 14:33:28 -05:00
manager.tmpl updated more help files 2009-12-20 14:28:46 +01:00
reports-home.tmpl Complete sweep of help files in order to correct invalid markup and fix Bug 2444(break up long lines in templates). 2008-08-01 14:33:28 -05:00
serials_stats.tmpl Updated Help Files - Part 4 2009-08-15 09:31:43 -04:00