Accessing data from header/footer
-
Is there a way to access data from header or footer so that I can dynamically generate company name from json?
Here is the link in the playground what I'm trying to do.
-
The root data are automatically provided to the pdf util merge operation.
You've just forgotten to link the data to the main template.
See it updated here
https://playground.jsreport.net/w/anon/7qCdfCJb
-
Yeah, silly mistake.
Thanks a lot Jan :)
-
I have tried it and it didn't work for header, only the main template is accessing data.
-
@Samerkassem Please prepare a minimal playground demo replicating the problem and share it in a new forum topic.
-
it is ok, i figured out long ago.
I must admit, this is the best js reporting engine I've ever encountered, very good job guys.