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

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

Recommended Posts

Posted

Is there any brilliantly simple way to set the next serial value for a field after importing a bunch of records from another FM table?

I can't figure out how to reach out and copy it from the source table. I tried to write a sub-script to accept table name and field name, and then sort/take highest value/serial increment/set next serial value, until I again discovered that Sort can't take parameters :) .

Short of brute force, is there a better way to accomplish this?

Thanks,

Chap

Posted

you could sort the table by serial number go to last record set a variable to that ID number one then use the script

Set Next Serial Number [ IDFIELD ; $$value + 1]

Posted

You can set a variable with the Max () function of the table occurrence. You can use a cartesian join to get a max of the entire table.

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