Summary
RTF template PDF ouput issue when using for-each-group@section
Content
Hello,
I have building RTF template, where we have issue generating blank PDF ouput when using for-each-group@section. error message: "There was an error opening this document. This file cannot be opened because it has no pages".
Details:
We have Datamodel containing only one dataset G_1, whenever there is no G_1 group data report should create blank page
sample XML looks like below when there is no data for dataset G_1 :
<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Oracle BI Publisher 11.1.1.9.0 -Dataengine, datamodel:_XYZ_xdm -->
<DATA_DS><DIRECTORY_OUTPUT>/Shared</DIRECTORY_OUTPUT><P_INVOICE>1234</P_INVOICE>
</DATA_DS>
RTF template for example looks like:
<?for-each-group@section:G_1;./INVOICE_DIV?><?sort:current-group()/INVOICE_DIV;'ascending';data-type='text'?>
---------- Invoice Table Heading ----------------
Start Body ( using start body to repeat Invoice table heading on each page)
----------- Invoice Table values --------------
End Body
End G_1 by Invoice_DIV
if I remove the @section and use tag <?split-by-page-break:?>, the report generates blank page at the end when we have data in G_1.
Can you please suggest on how to get this sorted out.
Many Thanks