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.

Script cannot be found error message

Featured Replies

FM 12 Adv. When I run the following script, it produces the error message “This script cannot be found or has been deleted” when it reaches the Go to Layout step. After I click ok, the script continues, finding and sorting the correct set of records.

Enter Browse Mode

Set Variable [ $$Issue; Value:VisitNotes::gIssue ]

Go to Layout [ “Issue Report” (VisitNotes) ]

Enter Find Mode [ ]

Set Field [ VisitNotes::Issue; $$Issue ]

Perform Find [ ]

Sort Records [ Keep records in sorted order; Specified Sort Order: VisitNotes::VisitDate; descending ] [ Restore; No dialog ]

Go to Record/Request/Page [ First ]

I can’t figure out why the message appears.

Does the layout setup have a script triggered OnLayoutEnter?

Hi John,

Aside from your error message, which I believe Comment is handling perfectly, a few other things caught my eye:

  1. Why set the variable?  It appears that the user enters their request into a global field called gIssue?  If so, you can access the global from anywhere and there is no need for setting that variable at all - just set your find directly with the global value.
  2. Even if you really needed to set the variable, there is no need to use a GLOBAL variable $$ unless you want to display that 'find request value' on the Issue Report.

It is best to use local variables as much as possible since they disintegrate naturally when the script ends.

An additional suggestion, it appears you have FMP Advanced so you can turn on debugger and watch the script progress.  The problem should pop up at you.  :-)

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.