For I Loop in JSRender
-
Am I being a bit thick here? I can't seem to do a basic for 1 <= 25 loop in JSRender.
I would like to dynamically create 25 rows. I do not have an array in the data file to iterate over.
I see JSRender has a range javascript extension but can't get it working with JSReport.
-
-
Hey Jan. Nice example but can't make it work when moving the function to scripts ???
https://playground.jsreport.net/w/anon/nGIoTJSL
-
Please read docs what the scripts are about
https://jsreport.net/learn/scriptsInstead you want to use an asset marked as shared helper
https://playground.jsreport.net/w/jan_blaha/jrFnTzrw
-
ahhhaaaaa Easy when you know how :) Thanks Jan