We have a document number that needs to be increased in value with every new document: if the previous document number is 23456, the User will manually enter the next one as 23457.
Now they want this to happen semi-automatically: only when the user requests it (i.e. Auto_enter Serial Number to Generate the next vale On creation won't do).
This is because some documents have more than one part, which calls for a suffix to be appended to the remaining part/s: 23457-1, 23457-2 etc.
We agreed that there would be a Button, which the User can click and then the new Incremental Value will be committed to the Field.
How is such a Script formulated?