June 17, 201015 yr 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 []
June 17, 201015 yr 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