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.

Setting sort order through scripting

Featured Replies

Here is what I need to do, and could use the advice of all of you out there.

Fields: Passenger (text), Driver (text); Rank (number); RankAdjust (number)

Following a search on driver, I get nine records. I assign each record a Rank number from one to nine. However this rank will change based the users requirements. I need to be able to set a passenger to a different number by entering the new rank in the RankAdjust field, post the change and have the script adjust the other Rank numbers in the list. For example:

John 1

Mary 2

Jim 3

Marty 4

Alex 5

Ted 6

Kim 7

Mike 8

Joan 9

Suppose I want to change Kim from 7 to 4. Marty needs to go from 4 to 5, Alex from 5 to 6, And Ted from 6 to 7. Passengers 1, 2, 3, 8 and 9 do not change.

There are 30 drivers, and about 250 passengers (not all drivers have nine pax, but none have more than nine).

I do not want any manual intervention to make the adjustments other than to enter the new rank in the respective record's RankAdjust field, and hit the button to trigger the script. My numb brain isn't working right on this one. How do I do it?

  • Author

Nevermind. The brain re-engaged and I have it solved.

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.