Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

biggest number

Featured Replies

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

See here

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

You can also use Last ()

  • Author

i did try what you suggest. i upload a image of the script .

but i do not get the biggest number. why?

Edit_Script____Process_Check_Out_3_____mc_history_-20090410-160915.jpg

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.

  • Author

the table is a child table of history of a item . i need to find the biggest number for the history of the item.

Capture the Max PRIOR to your GTRR.

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

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.