Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6051 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a field with an Auto Entry Serial Number. The field is a text field that uses a number with leading zero's, i.e. "00142" and increases by "1" with each new record request.I need to create a script such that when a record is deleted, the serial number automatically gets reset so the next new record continues where it was left. My trys using the "Setfield" script and adding 1 converts the serial number to a number and I lose the leading zeros.

Thank you for your help.

DT

Posted

if you do an advanced search in these forums for +serial +reset you should get a tons of posts on this subject.

As for your issue of padding the number with zeros, see this thread

http://www.fmforums.com/forum/showtopic.php?tid/194864

Posted (edited)

DT,

You could try this.

Show All Records Go to Record/Request/Page [Last]

// I set a global field with the serial number. (or you can use a variable)

Set Next Serial Value [your serial;00 & global or variable +1]

Commit Records

Hope it helps.

Dean

Edited by Guest

This topic is 6051 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.