I am trying to add 1 to the value of a property by using a form event. However when the event triggers, instead of returning a numeric value, it's returning a string. My event is as follows:
- SETVARVALUES(vUpdateCount=P(jobuf_DoneByCount))
- This returns the current value of the "done by count" in this example it's 3
- SETVARVALUES(vUpdateCount=1+V(vUpdateCount))
- this should add 1 to the current done by count to make it 4
- SETPROPVALUES(jobuf_DoneByCount=V(vUpdateCount))
- This should update the property to be 4
However when the event fires, instead of putting 4 into the field, it's returning a string of "1+V(vUpdateCount)". But if I out ('vUpdateCount') in single ticks, it will return " 1+'4' " instead of just 5. This works fine using the regular applicate event system form, but not on the form events.