I am currently creating a document template and sadly, I got stuck with the #EVAL[ ] helper. Based on the documentation, the #EVAL[] helper can be used like the following: #EVAL[ rbv_api.selectValue("SELECT COUNT(1) FROM USER") ] Is there a way for us to dynamically set what is inside the #EVAL block? For instance, I have a loop wherein the Query string changes. Please see sample code below: ============================================================= var totalAmount = 0, qry; var arrCodes=["Basic_Pay","Night_Diff","Overtime"]; for(var j=0; j
#EVAL block can use template tokens which will be replaced by actual values before JavaScript execution.
marking as answered