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

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

Recommended Posts

Posted

Yes, the script would first isolate the record that will be number 1, then Replace, and in the replace options you can choose to "Update serial number n Entry Options."

Posted

Thanks Tom,

But this only seems to work if I uncheck the "Prohibit Modification of Value" box in the field definition. I'd like to leave that checked so that it can't be accidentally modified by the user. One idea is to change the field format so that the user can't enter the field, but that also prevents them from searching by the ID number.

Any ideas?

Thanks again,

Dan

Posted

Hi,

Depending on your structure, you still can replace the "find" by a scripted "GTRR", or use another layout for finds, with a global field.

Then the script will go B)

Enter Find Mode

Set field (your serial num, global field)

Perform find

Posted

to prevent mod in your serial number field:

a) use a calc field, stored, sn2 =serialNumber. never place the serialnumber field directly on layouts (exept developer layout that is).

B) prevent entry into serialnumber on every layout. make your serialnumber field a button with a script checking for the mode first (if mode= find, go to field serialnumber)

Posted

slstrother is more awake than me: Set Next Serial Value is of course what you want, this feature was added in FileMaker 5.5. Look in the Scriptmaker commands near the bottom of the list.

This topic is 7890 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.