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

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

Recommended Posts

Posted

in a table i have id number (serial) . how can i rub i script to get the biggest number (the last)?

it is for a portal that i will have id 3,7,10,13,34 so i can get the number 34 .

thank you all

dani

Posted

See here

http://fmforums.com/forum/showtopic.php?tid/202667/post/322478

You can also use Last ()

Posted

Dani, it seems that you are looking to capture the largest ID in a found set in the same table (not a child table).

Just use a summary field that = Max (ID). No script necessary. Remember, though that summary fields are dependent on found set, but given your script, it seems that you are looking for the highest ID in a found set.

Posted

Capture the Max PRIOR to your GTRR.

Posted

Depending of the use obviously, would I consider an extra TO related similar but with the reverse sortorder of the creations, a GTRR would always land in that particular record if the cursor is taken away from a field in the portal ... Commit -> Gtrr does this, provided this utility relation is used instead!

I have during the course of versions been dissuaded from extensive use of Last( ... but things might have changed?

--sd

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