BI Publisher (MOSC)

MOSC Banner

Using variables in for-each element

edited Dec 14, 2015 4:05PM in BI Publisher (MOSC) 5 commentsAnswered ✓

Hello,

If I declare a variable like <?xdoxslt:set_variable($_XDOCTX, ‘KPI’, CÓDIGO_ELEMENTO)?> where CÓDIGO_ELEMENTO is the ID assigned to each KPI.

This variable KPI is supposed to be updated inside a for each after each loop ends, with the new CÓDIGO_ELEMENTO value.

Is it possible to use this variable as a filter like:

<?for-each-group:../G_1[CÓDIGO_ELEMENTO=’$KPI’];./CÓDIGO_ELEMENTO?>


It keeps telling me Variable not defined.

It only works if I declare it like <?variable:KPI;CÓDIGO_ELEMENTO?> but it seems this way the variabled oes not get updated each time.

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