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.

Have to hit return to execute a search

Featured Replies

I have a script that finds records with certain parameters in order to print them. Here's the script (I numbered the lines to make it easier):

Select for printing script

1 Perform Script [ “go to live airports” ]
2 Go to Layout [ “Select Airport” (airports) ]
3 Sort Records [ Keep records in sorted order; Specified Sort Order: airports::iatacode; ascending ] [ Restore; No dialog ]
4 Pause/Resume Script [ Indefinitely ] Copy [ airports::iatacode ] [ Select ]
5 Go to Layout [ “order detail” (qrgen) ]
6 Enter Find Mode [ ]
7 Paste [ qrgen::airport_code ] [ Select ]
8 Set Field [ qrgen::unprinted; 1 ]
9 Go to Layout [ “orderlist” (qrgen) ]
10 Perform Find/Replace [ Search operation: Find Next; Search settings: Forward; Search across: All records/requests; Search within: All fields ] [ No dialog ]
11 Beep
12 Show Custom Dialog [ Title: "Print Envelope Labels"; Message: "1. Click OK then hit return to perform find 2. Select number of records to print at top of screen
13 Click on 'Print Envelope Labels'
14 Mark as printed when labels are printed"; Default Button: “OK”, Commit: “Yes” ]
15 Exit Script [ ]

For some odd reason, when it gets to step 10 the find doesn't perform automatically--I have to hit return. I can't for the life of me figure out why it doesn't just do the search. Any ideas?

Thanks in advance.

It is hard to understand what your script is supposed to do. It seems to me you are using the Perform Find/Replace [] script step instead of Perform Find []. But I could be wrong.

 

  • Author

That was it. Simple as that. Can't believe I missed that. Thanks so much!

Edited by rcacciato

Good.

Side note:
Do not use copy/paste in your scripts to transfer values from one location to another. For one thing, it destroys the user's clipboard. For another, it requires the fields to be on the current layout. Instead, use a script variable and then set the field to the variable.

 

  • Author

Thanks for this. How does one use a script variable? I haven't found any reference to that in the FM documentation.

Sorry if these are such basic questions, I'm grateful for your help.

  • Author

OK I'll review and digest this. You've been most helpful. Thanks!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.