Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5273 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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 []

Posted

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.

This topic is 5273 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.