Answered
I'm trying to figure out how to:
Have a field in a distributed form, where a number/string from different fields are created when a button is clicked. I need the number to increase by one each time the form is filled, so that when it reaches me, the number is one higher than the last i received.
example: SW_NM01_20090505
The SW comes from a field, the NM is type of report and the 01 is the number.
I think it could be fixed by retrieving a number from a txt file, adding 1 and saving it again, so the next will be 1 bigger, but I just can't figure out how.
Anyone got an idea??
var num = TextfiledName.rawValue.substring(4,6);
var newNum = Number(num) + 1;
And than add the rest of the string to it.