Manually - Simple calculations not working in Java Script Box

 3 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Vijay S
Veteran Member Send Private Message
Posts: 174
Veteran Member
Hi,


I am working on a flow, I experienced a strange thing.
I have a statement 
ApprovalCount = ApprovalCount + 1.
Here, i have declared ApprovalCount as a variable at the starting. I need to update PA42 with the same for approval count.
Now when i write the same statement Manually  (ApprovalCount + 1) in the javascript expression box it doesn't seem to work, But when select the same variable from the left by double clicking on it and then add 1, It works perfectly.I tried it couple of more times but i got the same results every time. Has anyone faced this issue.
Thanks-
Vijay
Sam Simpson
Veteran Member Send Private Message
Posts: 239
Veteran Member
Did you simply enter "(ApprovalCount + 1)" or "=(ApprovalCount + 1)" ?
Vijay S
Veteran Member Send Private Message
Posts: 174
Veteran Member
Thanks Sam ,
i wrote ApprovalCount = ApprovalCount + 1, Manually by using keyboard... It didn't seem to work, But if I select ApprovalCount by double clicking the variable from the box it seems to work fine...... Nomidea why it happened....
ShawnV
Advanced Member Send Private Message
Posts: 37
Advanced Member
Is the ApprovalCount logic after an Inbasket node?