Req.data not displaying in merged header/footer template.
-
I am having an issue where objects stored in req.data are not showing on my header/footer template which I merged using pdf-utils.
These are my settings.
If i create another Script and call the beforeRender function and console.log the object it shows up in the console. But when I try attach the object to an html element it doesn't render. Does anyone have any idea why this is?
-
Please see the dome here
https://playground.jsreport.net/w/anon/UtgfD3idYou probably just need to use
{{@root.someData}}
, because you are in an inner scope. But just guessing.
Please share a playground if this didn't help.
-
Hi Jan thank you so much it worked!!!