Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 42 Oracle Analytics and AI Sharing Center
- 20 Oracle Analytics and AI Lounge
- 277 Oracle Analytics and AI News
- 54 Oracle Analytics and AI Videos
- 16.2K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Idea Labs
- Oracle Analytics and AI User Groups
- 103 Oracle Analytics and AI Trainings
- 19 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
Unable fetch the value of a Variable in RTF Header Section
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
-
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
0 -
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
Regards,
Sreedhar
0 -
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
0
