Oracle Analytics Publisher

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Unable fetch the value of a Variable in RTF Header Section

Received Response
26
Views
3
Comments
Sreedhar Elagandula
Sreedhar Elagandula Rank 1 - Community Starter
edited Aug 29, 2025 10:20AM in Oracle Analytics Publisher

Hello Community,

I am doing a set variable in rtf body <?xdoxslt:set_variable($_XDOCTX, 'vlang',0)?> and trying to get the value of same variable in Header of the body using <?xdoxslt:get_variable($_XDOCTX, 'vlang')?> what i noticed is the value set in the body is not getting printed in the header of the Report.

Any suggestion how to exchange variable data between Header and Body of RTF Template. Please advise

Thanks,

Sreedhar

Answers

  • Kevin M-Oracle
    Kevin M-Oracle Rank 6 - Analytics Lead

    Have your tried adding @section to the for-loop that refreshes the header.

    Ex: <?for-each:G_1?> is changed to <?for-each@section:G_1?>.
    Rgds,

    Kevin

  • Sreedhar Elagandula
    Sreedhar Elagandula Rank 1 - Community Starter

    Hi Kevin,

    Thank You.


    Actually i am trying to achieve the below and yes am using for <?for-each@section:G_1?>

    Based on above does the initialized variables in body say in iteration1 starts getting printed on the headers from iteration2 of the foreach loop. Is my understanding correct? if so Is there any possibility to explicitly refresh the headers post variable initialization in the body in the same iteration?

    FYR

    image.png

    Regards,

    Sreedhar

  • Kevin M-Oracle
    Kevin M-Oracle Rank 6 - Analytics Lead

    Put the set variable to 0 before the for-each@section:G_1.

    Set the variable inside the G_1 loop.

    In the header only use get.

    Kevin