how to programatically add header,footer in report using script?
-
Hi sir,
i have a report i would like to add header and footer programatically using script(before render/after render sorry iam not sure).But i couldn't find any example.Could you please reply with an example?helper.js file is shown below :-
Also i have read sample code from jsreport studio which contain header and footer, But i couldn't understand some keyword like :-lookup
- {{#with (lookup ../$pdf.pages 0)}}
<h1>{{group}}</h1>
{{/with}}
kindly please reply the use of lookup , { #with }, 0 etc ?
- {{#with (lookup ../$pdf.pages 0)}}
-
Here you can find a simple example
https://playground.jsreport.net/w/anon/Vv_DbgUTSee the documentation for the handlebars custom helpers here
https://handlebarsjs.com/guide/builtin-helpers.html