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.

Field indicating lowest to highest

Featured Replies

I have a field called ports that is a numeric field. Lets say I have 5 records and the ports field is filled in like this:

Ports

24

21

234

1096

400

I would like to creat a calculation field that assigns 1 to the lowest number in the ports field, 2 to the next lowest etc. In other words, if my field were called Sort it would look like this

Ports Sort

24 2

21 1

234 3

1096 5

400 4

I would like the sort field dynamic so when I add another record, lets say port 100, sort for that record becomes 3 and the rest of them follow suit. Is this even possible?

Hi, HendersonD!

But what if two records have the same value?

One of ways:

Create Value list by this field

Then use WordCount(), Postion(), Left() and ValueListItems() functions.

Edited by Guest

This should work for you. If you have duplicate records then you might have to adapt this with ValueListItems as aaa pointed out in his post.

I wrote this in 8 before I realized you were using 7 so I just modified the script to check for the version and branched it from there to use a global field or a variable as the counter.

NumberedOrder.zip

If the field is a number and it's sorted in ascending order, the record number is the sort order. You don't need anything else, right? I wouldn't write the sort order to a regular field - you'd be reserializing them constantly via script. Either create a calculation (text, unstored) of:

portField & " " & Get ( RecordNumber )

... or (if for display), forget the calculation and use merge field: <> @@.

Then just sort the puppy!

LaRetta :wink2:

Hi LaRetta,

Once again you've shown me how much I can overthink things :

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.