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.

Custom message for 'file damaged' state?

Featured Replies

I deploy runtime solutions to my customers who have no idea what to do if they encounter a 'file damaged' condition with the instruction to use 'file recovery'.

What I would like to do is trap the condition and provide a custom instruction.

Now they call paniced, I give them the simple instruction, and life is good in a few minutes.

Can I trap and provide the message when the runtime encounters 'file damaged'?

It's a bit hard because the message will be generated from INSIDE the file, and FMP is telling the user that the file cannot be opened.

  • Author

It would be great if there were a file option to specify your own message to be displayed when FM can't open the file!

It's a bit more complex than it looks: the file needs to phone-ahead to the FMP application and say "You're about to open my file, here is the message you should display if you cannot open it because it's damaged."

To do this, use an "opener" file that opens the real file. In the script in the opener file trap for the file damaged error and issue your warning if the file cannot be opened.

Just in case the opener file ever gets damaged, use another opener file to open the opener file to open the real file.

Rinse and repeat.

  • Author

I should have thought of that!

Already use an 'opener' file. Just need to capture the error. I'll risk that the opener file doesn't get damaged! It never has in 8 years - so far.

Thanks!

  • 2 months later...

An "opener file" what's that ?

Sorry is that dim.

Would it help me ?

http://fmforums.com/forum/topic/84963-help-cant-open-my-file/

I would also suggest that your clients calling you is a good thing because file recovery is never a permanent solution for corruption

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.