Forum Post: RE: (Suggestion?) Replace template tokens after parsing?

  • Thread starter Thread starter Orchid Corpin
  • Start date Start date
Status
Not open for further replies.
O

Orchid Corpin

Guest
I suggest of using "rbv_api.getFieldValue(objName, objId, fieldName)" instead and remove the {!} of your s2 and assign s2 to the "fieldName", here is the revised code. var statusNameNmbr = ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13"]; var fields = [ ["bbs", "box", "email", "housenet", "jira", "letter", "final"] ]; var s1 = "{!web01_bbs}"; var s2 = "web" + statusNameNmbr[0] + "_" + fields[0][0]; var myField = rbv_api.getFieldValue("product1", {!id}, s2); rbv_api.println(myField); Hope this helps. Regards, Orchid

Continue reading...
 
Status
Not open for further replies.
Back
Top