Jump 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.

"Marking" record and returning to record after sort

Featured Replies

I have a layout that performs a script OnRecordCommit.  The script includes a sort.

How can I "mark" the record and then, after the OnRecordCommit script finishes, return to the same record?

Thanks,

Kevin

I deleted your duplicate post.

IMHO, a better solution would defer the sort (perhaps even the commit) until after the user is done with the record - so it wouldn't be necessary to return to it.

In what type of view is the layout you're in when doing this?

comment has a better answer if you don't need to commit, but if you do...

You can go simple and dirty or you can go complex and clean.

Simple: Grab the record's unique primary key then loop through your newly sorted found set until you get to the right record.

Complex (helpful if you have a huge number of records, or if they are "wide" or if performance is really important): Created a summary List of the primary keys. Grab the primary key of your record, then sort. Grab the Summary list of and find your primary key in that list using a custom function like ValuePosition(). Use that number to Go to Record[]...

Created a summary List of the primary keys.

​OP's profile shows version 11.

Incidentally, I am quite sure this was visible on the side bar when I posted my answer, but it's not visible now.

Version 11 is what the OP is using.

 

Create an account or sign in to comment

Important Information

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

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.