BI Publisher - RTF Template and Global Variable scope Header/Body/Footer
Hi,
I'm working on a BI Publlisher 10g Desktop RTF report, and the requirement is to display conditional footer section based on the group data.
This report contains 2 Groups:
1. Master records
2. Detail records
I've created a few variable to limit detail records/page and page breaks.
<?xdoxslt:set_variable($_XDOCTX, ‘counter’, 0)?>
<?xdoxslt:set_variable($_XDOCTX, ‘lines_page’, 30)?>
<?xdoxslt:set_variable($_XDOCTX, ‘tot_lines’, count(.//G_D30))?>
<?xdoxslt:set_variable($_XDOCTX,’remainder’,0)?>
Now the issue I'm facing is, when I try to display the Variable <?xdoxslt:get_variable($_XDOCTX, ‘counter’, 0)?> out of group and in footer section, it does not display the value for that specific Mater/Detail group record, but on second Master/Detail group record it display for the previous one. Which is wrong. Based on this counter value I need to change some other values in footer section.