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

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

Recommended Posts

Posted

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?

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