Problem when ListView Total causes new page [message #1971] |
Tue, 24 March 2009 14:39 |
gpatti
Messages: 283 Registered: August 2008
|
Senior Member |
|
|
I've discovered a problem with variables in the title sections of a report when using _cm_ListView_total() to print totals at the end of a report.
The problem occurs when the number of items in the report causes a page to be thrown at the point the totals are to be printed. The totals are then the only items on the final page (no problem with that), but the variables in the titles are printed as variable names (e.g. %%date) instead of the variable value. On all previous pages the variable values are printed correctly.
Regards,
Graham
|
|
|
|
|
|
Re: Problem when ListView Total causes new page [message #1975 is a reply to message #1973] |
Wed, 25 March 2009 19:21 |
AJM
Messages: 2371 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
It works for me. I ran a test using the EXAMPLE subsystem. I changed line #16 in file xample/reports/en/x_person.list.report.inc from
$structure['title'][] = array('text' => '- Contents of X_PERSON table -',
to
$structure['title'][] = array('text' => '%%last_name',
and when I select 26 entries before pressing the 'Output to PDF(L)' button I see the value of last_name from the last record shown in the title, not the string '%%last_name'.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|