Is there a way to dynamically control what is inside an #EVA

Posted by Rollbase User on 20-Mar-2013 08:36

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

All Replies

Posted by Admin on 20-Mar-2013 11:44

#EVAL block can use template tokens which will be replaced by actual values before JavaScript execution.

Posted by Admin on 24-Mar-2013 23:18

marking as answered

This thread is closed