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.

FMP Script wont run properly - Why?

Featured Replies

I have two scripts which I can run successfully in succession - but If I place a command at the end of the 1st script to run the 2nd script, it doesn't work properly.

Also- If I place all the commands in the 2nd script at the end of the first script , also no go:

1st:

Go to layout ["Invoices"(main table)}

Show all records

Enter Find Mode [] ! here i have to enter find !criteria manually

Sort Records

2nd:

Go To Layout ["Budget Label" (photo log master}]

!this layout is a report with summaries

Sort Records [restore; No dialog]

Enter Preview Mode []

If I run these commands as one script

FMP tries to sort all 6000 records in the "Invoices" layout instead of Entering Find mode, which is strange to me because the first 4 commands in this combined script are the same either way.

Thanks for any help

JW

Enter Preview Mode []

There are a few things that could be going on, and a few things that are wrong/unnecessary regardless.

It's unclear what order the scripts steps are running, but I'm guessing Enter Preview Mode[] doesn't run after your name.

The core issue is that you need to Perform Find[].

Enter Find Mode[]

Pause/resume -- manually enter find criteria

Perform Find[]

Going straight to Preview Mode[] doesn't find any records.

But also...

if you're Finding records, there's no need for Show All.

It looks like the two layouts are based on different table occurences. Finding a set of records in one TO, won't give you a set of records in the other.

Good luck.

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.