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

I am new to this forum, and have been digging deep into FM for over a year (v 4-8) now.

I'm using 8 (&7) on WinXPpro to generate calculated containers to show multiple images for an individual object. That works fine, as long as the actual image file is named the same as what I predetermine. The plan is to not have to insert up to 1000's of images.

My problem: I want to add a flag in the container calc to display a placeholder "Unavailable" image if the file referenced is not there. Instead of showing the text "The file cannot be found:path", another image would show up, indicating missing image.

Hope this is clear, and hope someone can help. I've tried almost every Logical Function in the Field Definition possible.

Thanks, Sean

  • Author

So, what I ended up doing with this, is to just add a flag field for each image field, which is set up as a check-box. If the box is checked, a placeholder image is displayed; unchecked, the standard image is displayed, unless, of course it is not there. Unfortunately, it is a manual solution, but seems to be the only work around, besides scripting things.

Thanks for reading, and thinking.

The Troi File plug-in has a file length test which, if used in an unstored calculation, can tell you if the referenced file is there or not. It produces a known error if it's not, which you can do a (slow) Find for.

There are other plug-ins that can do this also I imagine. There would be command line tests on either platform (can't say for Windows), but those would require scipting.

  • Author

Thanks, but I'll have to stick with what I did. Not into plugins, at this point.

Like Fenton mentions, you can do this without plugins too, using the available OS level scripting. A plugin just makes it a whole lot easier.

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.