BI Publisher (MOSC)

MOSC Banner

How to pass parameter to call sub template

edited Aug 5, 2020 12:48AM in BI Publisher (MOSC) 4 commentsAnswered

Hi

I have a custom report about consolidate invoice.

data is as below:

Group 1

Group 2

Current template is as below:

<?call:template1?>

<?for-each@section:G_1?>

<?for-each:G_2?>

<?end template?>

<?end for-each?>

Now i want to create a parameter to print original and copy.

Copy template is as below:

<?for-each@section:G_1?>

<?call:template2?>

<?for-each:G_2?>

<?end template?>

<?end for-each?>

The parameter have 2 value.

while value is 'O', want to call template1, while value is 'C', want to call template2.

I don't know if my understanding is correct, My logic is as below:

<?param@begin:CF_P_PRINT_TYPE?>

<?choose:?>

   <?when:$CF_P_PRINT_TYPE='O'?>

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