« Pizza Pie Main | The Hash Slinging Slasher »

Paltry PDF?

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)

rahul:

When I use above code
No Data Found
it gives error

PDF can not be generated

what is //ID ? is this main xml group?

Chithu:

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...

Dhairyasheel:

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.

Post a comment