A freaky funky Friday fry up today, sorry my son has discovered aliteration and we are trying to out do each other. This nugget of BIP goodness comes from template miester, Hok-Min, on the development team.
When you are using @section in your template for the commands, 'for-each' or 'for-each-group' (e.g. <?for-each@section: ...?>), then an empty/invalid PDF can be generated if XML data file has no data for that for-each loop.
To workaround this issue, please follow these steps:
1) add a section-break at the end of RTF document.
2) On the last page, add XDO command <?if@section: not(//ID)?>No Data Found<?end if?>
Have a wonderfully wicked weekend!
Apologies to those that caught this post early and were wondering what 'alterations' had to do with a freaky funky Friday. Also managed to get the instructions corrected too. Thanks to Leslie the post actually makes some sense now. Thanks Leslie!
Comments (3)
When I use above code
No Data Found
it gives error
PDF can not be generated
what is //ID ? is this main xml group?
Posted by rahul | February 20, 2009 12:37 AM
Posted on February 20, 2009 00:37
Hello sir,
Me too the same problem...Plz help me to know "last page" design with "Section Break".
In this I want to know onething...
Which type of Section Break we want to use for last page design....I tried 'continuous' and 'Next Page' It shows double pages...
Plz help me to this earlier...
Posted by Chithu | August 1, 2009 3:25 AM
Posted on August 1, 2009 03:25
Hello Sir,
we have created a report with a word rtf file as a template.
When we run the report without a digtal signature file the report
comes proper with 53 pages.
When we add digital signature file we get 54 pages (one pg for digital signature) but the remaining 53 pages are blank.
The filesize of the two reports mentioned above are 878kb and 881kb respectively.
Oracle BI Publisher ver 10.1.3.4
Thanks & Regards.
Posted by Dhairyasheel | August 24, 2009 12:56 AM
Posted on August 24, 2009 00:56