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.

Performance GTRR vs Loop?

Featured Replies

using a technique to sort portal items if i want to move an item up or down add an decimal to the sort order, like 2.5 will place item between 1 and 2. Then I run a script trigger after that to perform an operation that would re-serialize the sort order.

Option A

GTRR to the portal records, sort, go to the first then replace 1 increment by 1 then go back to original layout. (or use off screen window { haven't tested on windows may create window dancing } )

Option B

Loop thru the portal resetting the sort number incrementing accordingly.

Which would be cleaner and most efficient?

thanx

S

  • Author

Thats how i have it setup now however, I think that returning to the original layout will require capturing current state (tab panels / portal row selected ) prior to executing the script so that you don't loose focus if you have nested tabs?!

Neither method is best. You don't want to update all the fields in the group. Just swap the two adjacent numbers like so:

1. A

2. B

3. C

4. D

To move B down the list, set record B to 3, set record C to 2.

1. A

2. C

3. B

4. D

  • Author

not exactly you need to resequenced all numbers after the change...

Original Portal

1. a

2. b

3. c

4. d

5. e

~

23. w

24. x

25. y

26. z

MOVE ITEM x below c

1. a

2. b

3. c

4. x

5. d

~

23. v

24. w

25. y

26. z

Ah, I see. You want to be able to move an item more than one place in a single operation.

In which case I would probably opt for A. A freeze window will probably prevent the screen moving too.

An interesting question, as to which would be faster and smoother looking. An alternative idea, if you were never showing the numbers, would be to not renumber them, but just leave them as decimal numbers. You would never run out of decimals.

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.