How to get attribute value in header/footer in RPE template
Hi All,
I am getting custom attribute value in template but i want attribute values in Header/footer.
Can you show me how to get attribute values in header/footer?
|
Accepted answer
You cannot use the attributes directly in Header/Footer. You can assign attribute value to RPE variable and use that variable in Header/Footer.
Rima Kumari selected this answer as the correct answer
Comments
Rima Kumari
commented Apr 15 '20, 2:30 a.m.
Thank for your quick response.
Yes, I have assigned variable in edit assignment and then using that variable in Header/footer.
But then also attribute value is not coming in header/footer.
Subramanya Prasad Pilar
commented Apr 15 '20, 2:54 a.m.
Should be some issue with assigning value to variable. Can you set default value to the variable and see if that gets printed in header/footer?
Rima Kumari
commented Apr 15 '20, 3:36 a.m.
Yes, I have checked with default value also, default value is printing but attribute value is not coming.
Rima Kumari
commented Apr 15 '20, 3:42 a.m.
I have attached Scrrenshot
Rima Kumari
commented Apr 15 '20, 3:48 a.m.
Sorry, i am not able to attach screenshot here
Rima Kumari
commented Apr 16 '20, 12:19 a.m.
Thank you so much.
Its working fine.. So what was the issue, then?
showing 5 of 7
show 2 more comments
|
4 other answers
Hi Rima,
If the attribute is not showing in the header/footer you need to debug the assignment.
With Prasad's suggestion you have already debugged that the variable is printing in the header OK.
Is the attribute a text attribute?
Assign it to the variable and see if you can just print the variable in a text element.
If it is being assigned inside a an artifact container loop then try just assigning it once at the beginning of the template outside any artifact loop container and see if it is working just for debugging purposes.
|
You cannot use schema attributes in master pages. Hence, store the module attribute in a RPE variable at the beginning of the templates. Use the variable in the master page to print in header / footer. |
In the event that at all your computer framework is said to encounter various digital dangers and infection assaults, at that point you should protect the gadgets against them by utilizing a viable kind of hostile to infection programming. This is the place McAfee stands separated from the horde of security programming applications made to give the genuinely necessary wellbeing principles to your computer. <o:p> </o:p> Visit website :- mcafee.com/activate |
At Kodehash, we're more than just a mobile application development company - we're your partners in growth. We blend innovation with creativity to create digital solutions that perfectly match your business needs. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.