Skip 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.

Find/Print Script.... error proofing

Featured Replies

Hi,

I have a button that executes a script that will bring up a dialogue box to enter a couple of search variables... then it performs the search, goes to preview mode, and prints out the report. Yeah!

The problem is that what if the search yields no results? Then it continues the script going to preview mode where nothing is displayed and unfortunately the user thinks there is something wrong and they want to close it down.

How do I script for errors so if the search yields no results, then i could put up another dialogue box...?

Thanks

Vandy

Hi Vandy,

here is something I have been using and has been working great (so far)

...a bunch of steps to perform the find

if(Status(CurrentFoundCount)<0)

show message "no records meet your request"

---a bunch of steps like perform another script of exit or...whatever

else

---do what you do now

EndIf

  • Author

Hi,

where do I place this code in the Scriptmaker? I don't really see an area to place it in.

  • Author

And it's coming up with a message that the "Status" function cannot be found.

"Status" is for previous versions. Use Get(FoundCount) after the Find and trap 0 results (exit script).

yes sorry, in version 7 all the "status" have been changed to "get"

Z

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.