BI Publisher (MOSC)

MOSC Banner

Template not generating output when using for-each@section

edited May 15, 2014 12:00PM in BI Publisher (MOSC) 5 commentsAnswered

Hello,

I am working with a template that should show an error message based on a data element being null or not.

The issue is that since my template uses a for-each@section construct, the PDF output is not generated and I get a Acrobat message "There was an error opening this document. This file cannot be opened because it has no pages".

here's the simplified template:

<?if: ERROR_MESSAGE!=’’?>

<?ERROR_MESSAGE?>

<?end if?>

<?if: ERROR_MESSAGE=’’?>

<?for-each@section:G_1?>

Do something

<?end for-each?>

<?end if?>

In this case, the xml generated by the data model does not generate any data for G_1 i.e. G_1 is absent from the xml. The ERROR_MESSAGE element is coming from another query/group G_3.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center