Auto increment values.
Hi everyone. Is there anyway to create an auto increment field in a datatable? if so, can you provide me an example? Thank You for your time.
Hi everyone. Is there anyway to create an auto increment field in a datatable? if so, can you provide me an example? Thank You for your time.
Hi Autoincrements should never be implemented with a getRowCount, in any platform.
We implemented on ThingWorx using a LONG property on the DataTable Thing, and you just increment it, and use it's value, of course make it persistent, this way you will lock other threads entering on the property while you are updating it and you won't lose last increment . In order to reuse it, we did it on a ThingShape that we add on the DataTable that we wan't an autoincrement.
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.