Hi,
I have some question related FormCalc for expression.
I'm trying to loop trought variable with no luck.
Code:
//take list of user names
var userName= xfa.resolveNodes(concat("$record.empls.empl.[fg_code==""",fgCode,"""].empl_name"))
//loop thriught it
var len = userName.length
for i=0 upto len-1 step 1 do
xfa.host.messageBox(userName.nodes.item(i))
endfor
not working, i'm getting messages that i can't access properti length or item.
Hoe can I loop trought FormCalc variable?
Thanks in advance.
Solved! Go to Solution.
Views
Replies
Total Likes
Unlike JavaScript, you need to make use of the Ref in FormCals for reference of objects;
I have attached a sample which loops through the items of a node.
Hope it will help you.
Nith
Views
Replies
Total Likes
Hi,
Friends, is it so hard to make llop trought FormCalc variable? )
Views
Replies
Total Likes
Unlike JavaScript, you need to make use of the Ref in FormCals for reference of objects;
I have attached a sample which loops through the items of a node.
Hope it will help you.
Nith
Views
Replies
Total Likes
Hi, Nith
Thank you for help. It works )
Views
Replies
Total Likes