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.

Checking for existence of file

Featured Replies

I have a web viewer configured to view bitmap scans of purchase tickets. Since the bitmap files are named based on the ID field, the file path to the saved file (e.g., c:scans00019.bmp) is easy to calculate. With a script activated with the View button, then, I open a pop-up window with a web viewer for viewing the file. This works

well, but if a particular ticket hasn't been scanned, there's no file at the computed path and the web viewer displays an error page.

How can I check for the existence of the file before displaying the web viewer? Alternatively, can I trap a web viewer error for a bad URL?

As an added feature, it would be nice to have the View button be visible only when a valid path exists.

I'd appreciate any thoughts on how to do this.

Thanks!

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.