Auto Increment Number

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Auto Increment Number

moch.effendi
Dear, how to create increment number from the previous data like on the image : i have data with "No FPB = 1" when i click new it will automatic increment into new form no FPB : 2 Auto Increment
Reply | Threaded
Open this post in threaded view
|

Re: Auto Increment Number

Alessandro  Vernet
Administrator
Hi Moch,

Do you need the ids to be contiguous? If not, I would maintain that counter in the database, create a database service to run SQL incrementing the counter in the database, returning the current value, and use an action to call the service on form load, and populate a read-only field with the result. Would something along those lines work for you?

Alex

On Thu, Mar 12, 2015 at 5:35 PM moch.effendi <[hidden email]> wrote:
Dear, how to create increment number from the previous data like on the image : i have data with "No FPB = 1" when i click new it will automatic increment into new form no FPB : 2 Auto Increment

View this message in context: Auto Increment Number
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet