How can I enable settings.allowCode(true) for jsrender

  • I need to be able to assign variables in the jsrender and it appears this doesn't work out of the box with jsreport.

  • administrators

    hmm can you show what are you trying in playground? so far i see that settings.allowCode api is for jsViews, which is something that only works in browser, and not in server side templates (which jsreport uses), so i'm not sure that you can do the same using the same api

  • I'm trying to assign a result of a function call that otherwise would be called like so: {{:~ func(abc)}} to a variable that I'd like to reuse later like this: {{: ...}}

Log in to reply

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.