Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Untill now I've been very happy with my auto increment Client_ID.

It increments by 1, from the last highest recordnumber.

The fields I use are:

Client_ID

Right("0000" & GetAsNumber(serial); Max(Length(GetAsNumber(serial)); 4))

serial

If(Get(TellingTotaalaantalRecords) = "1"; "1"; NextClientSerial)

the If is needed when the first record is being created.

NextClientSerial

Max(Global::c_ClientID) + 1

The Global is the common 1:1 relationship

This is exactly what I want. Except I just can't seem to get it to work with importing other records.

I thought it worked but it doesn't (anymore).

I've tried a couple things but I think that the relationship Global:;) doesn't work while importing.

Any suggestions are very welcome...

Posted

A solution I'm using now is with the script step replace on the serial field after the import:

SerialIncrement ( Max(Global::c_ClientID) ; 1)

But perhaps I need a new approach

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