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.

Script going to wrong layout on exit

Featured Replies

I have a script that's giving me some trouble. The last step is a Goto Layout, but it doesn't work.

Actually, the script step executes, but then for some reason the layout switches. I added custom dialog steps before and after the Goto Layout. When the second dialog come up you can see the window switch to the correct layout, but when you dismiss the dialog (which is the very last step) the window switches again.

Very annoying. Is this a bug? I can't find anything in the techinfo at filemaker.com.

Thanks,

J

What layout is specified in the Go to Layout [] step -- it's the bit in the brackets.

Hi spankalee,

Vaughan has probably nail the problem in suggesting that you check which layout is there (ScriptMaker will have it defaults to (original) unless you name one).

Update your profile (the link is just below your name "Profile"). The Operating System and Version can come in handy when we are trying to help. Not part of the problem here I'm sure, but it can help us help you provide needed information by knowing your info, plus let you know of Known bugs, fixes, etc..

If Vaughan hasn't nailed your problem, why not post your script here, along with the layout name you wish to end on.

HTH

Lee wink.gif

  • Author

The part in the brackets is "Order Details" (Invoices)

This is actually the original layout I'm starting from. I've tried setting it to be original layout, but that doesn't work either.

I've determined (with the dialogs) that this script step is working as it should, but the layout is being switched after the script ends.

Lee: how can I copy and paste the script? Do I have to take a screen shot?

You can do this in a couple of ways. At least in OS 9 I can.

Print to PDF (or a Text File), copy that, and then paste it into your post.

If you know how to copy a window as text, that will work also.

(i.e. With the window open so that you can see all of the steps (you can open the the Script Step Box as large as your screen by pulling on the bottom right) and then use the Text Capture options of the system, Cmd, Option and 6. You will get the cross hairs and you use that to draw a box around the ScriptMaker Box).

Or, you can take a screen shot and attach that to your post.

Lee

  • Author

Ok, here's a cap of my script

cap1.gif

Is it perhaps called by another script?

  • Author

Nope, it's called from a button on the "Order Details" layout.

Not sure about v7, but in earlier versions of FileMaker, you would have to run an external script to change Files.

HTH

Lee

  • Author

In 7 all you need is a Table Occurrence and a Layout that displays records from that table. Then you can switch to that layout and work with the records in that table, so a Goto Layout in 7 is like running an external script.

  • Author

So I tried calling my CreateBackOrder script from another script that has a Goto Layout ["Order Details" (Invoices)] after the Perform Script, and I still get the same behavior.

I can't tell what's causing this. I'm pretty sure it's a bug, but I don't know why it's not cropping up in my other scripts that do similar things.

How should I contact FileMaker about this? I assume tech support doesn't deal with things like ScriptMaker because then everyone would be calling them, but I do think it's a problem with their software and would like to find a workaround or at least report the bug.

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.