How to use return value from function, to another function in html body?
-
Hi everyone,
I have a script in jsreport that returns me a number. How can I use this number in the html code for another function?example
https://playground.jsreport.net/w/anon/sWZ93uz7I need such solution but I can't find the answer
-
Please check out Get Started tutorial
https://jsreport.net/learn/get-startedAndr very basic examples
https://playground.jsreport.net/w/admin/hBfqC7afThe helper functions should be defined in the helpers section, not in custom script.
If the helper function argument is another helper call, you use handlebars subexpression
https://handlebarsjs.com/guide/expressions.html#subexpressions{{outer-helper (inner-helper 'abc') 'def'}}
-
Thanks for help :)