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.

Featured Replies

  • Newbies

HI,

I'm pulling up a number of records each with a unique number by going into find mode, then selecting new request, then entering another number, then slectting new request, etc. . . Is it possible to sort by the order in which I performed the find? The field I'm using is a number field

Thanks,

Danny

crazy.gif" border="0

My first thought was to put the numbers into records in a related file, define a value list from the main file using the related file, and do a custom sort based upon the value list. Neat idea, doesn't work.

For plan B, you could create records in a related file, related by the field you are entering into in the find requests. Create a new related record each time you create a find request. In the related file have a second field with an auto enter serial number incremented by one. When you a done with the find, sort on the related serial number field.

Hope this make some sense (as I read it over, I'm not sure wink.gif" border="0 ).

-bd

...here's a plan C. It may not be too elegantbut it avoids the need for a related file and has just as much clicking as creating new find requests.

You need a global number field (Count) to generate numbers for your sort order, the unique number field you already have (Serial) and another number field (Sort). Then create this script:

Set Field [count, 1]

Enter Find Mode

Go to Field [serial]

Pause/Resume Script [ ]

Perform Find

Insert Calculated Result [sort, count][selectentire contents]

Loop

Here's plan C. It may not be too elegant but it avoids the need for a related file and lets you click in response to a message and add as many find requests as you want.

You need a global number field (Count) to generate numbers for your sort order, the unique number field you already have (Serial) and another number field (Sort). Then create this script:

Set Field [count, 1]

Enter Find Mode

Go to Field [serial]

Pause/Resume Script [ ]

Perform Find

Insert Calculated Result [sort, count][select entire contents]

Loop

Show Message [buttons:"Yes", "No", ""; Data:"Find another?"]

Exit Loop If [status(CurrentMessageChoice) = 2]

If [staus(CurrentMessageChoice) = 1]

Enter Find Mode

Go to Field [serial]

Pause/ResumeScript [ ]

Perform Find

Set Field [count, count+1]

Insert Calculated Result [sort, count]

End If

End Loop

Enter Find Mode

Insert Text [sort, >=1][select entire contents]

Perform Find

Sort[sort Order:sort (Ascending)]

[Restore sort order, No dialog]

Clear[sort]

[select entire contents]

Replace [sort, Replace data:Current contents]

[No dialog]

This should work.

  • Author
  • Newbies

Thanks a ton. I'm going to paly with it this weekend. I'll let you now if I have questions.

Thanks again,

Danny

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.