Serializing a field
-
mozum
- Posts: 4
- Joined: March 30th, 2016, 8:21 am
Serializing a field
can any one help me on how to make a field accept number input serially. For instance if serial number of a preceding record is 3, the field should accept 4 as the next record else error msg should request a re entry as serial number 4.
-
htuser
- Posts: 686
- Joined: December 19th, 2011, 6:26 pm
- Location: Silver Spring Area, MD, USA
Re: Serializing a field
Hi Mozum,
Please consider using autoincrement item. For error message, please try visualvalue function with this idea:
[/i]
Best regards,
Please consider using autoincrement item. For error message, please try visualvalue function with this idea:
Code: Select all
if item value<> visualvalue (previous item value)-1 then
errmsg();Best regards,
You do not have the required permissions to view the files attached to this post.
G.VOLNY, a CSProuser from Haiti, since 2004
-
mozum
- Posts: 4
- Joined: March 30th, 2016, 8:21 am
Re: Serializing a field
Thanks alot for the guide. but I could not access the author increamental field to check it. I try to do so by right clicking on the field and selecting field property. But it display among other items 'sequential' which is unselectable. can I still learn from you how to display this.
-
savy
- Posts: 201
- Joined: December 27th, 2012, 1:36 pm
Re: Serializing a field
Only numeric fields are allowed to have autoincrement attribute. Please check your dictionary and make sure that the item is numeric type and not alpha
-
Gregory Martin
- Posts: 1946
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Serializing a field
Auto increment fields can only be ID fields. If you want to increment a non-ID field, you might consider using the loadsetting/savesetting function to store the value associated with the previously entered case.