BlackHawk2
Technical User
I am using the following to increment a text field:
OldOrderNumber := @Environment("OrderNumber"
NewOrderNumber := @TextToNumber(@If(OldOrderNumber = ""; "0"; OldOrderNumber)) + 1;
ENVIRONMENT OrderNumber := @Text(NewOrderNumber);
NewOrderNumber;
The problem is that it stores it only to the local notes.ini. Is there a way to have this stored and read by the server?
Or is this not a good way to increment a field??? Will this give me problems if more than one user trys to create a new document at once? or is it better than telling it to look at the last document and adding one? wouldn't that create duplicates?
BH2
OldOrderNumber := @Environment("OrderNumber"
NewOrderNumber := @TextToNumber(@If(OldOrderNumber = ""; "0"; OldOrderNumber)) + 1;
ENVIRONMENT OrderNumber := @Text(NewOrderNumber);
NewOrderNumber;
The problem is that it stores it only to the local notes.ini. Is there a way to have this stored and read by the server?
Or is this not a good way to increment a field??? Will this give me problems if more than one user trys to create a new document at once? or is it better than telling it to look at the last document and adding one? wouldn't that create duplicates?
BH2