Cannot access JSON data in Header Template
-
Could someone help me figure out why I am not able to access the JSON data in the header template? Please find the example at https://playground.jsreport.net/w/anon/2ze7I7L_
-
Handlebars changes context inside
{{#each}}
to the particular array item.
When you need to reach something from the root context, and you are inside the loop, you should use{{@root.myProperty}}
.
See here fixed workspace
https://playground.jsreport.net/w/anon/3i_jeFCtThank you for sharing the problem in the playground workspace.
-
Thank You! It works :)