spankalee Posted July 22, 2004 Posted July 22, 2004 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
Vaughan Posted July 22, 2004 Posted July 22, 2004 What layout is specified in the Go to Layout [] step -- it's the bit in the brackets.
Lee Smith Posted July 22, 2004 Posted July 22, 2004 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
spankalee Posted July 22, 2004 Author Posted July 22, 2004 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?
Lee Smith Posted July 22, 2004 Posted July 22, 2004 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
spankalee Posted July 22, 2004 Author Posted July 22, 2004 Nope, it's called from a button on the "Order Details" layout.
Lee Smith Posted July 23, 2004 Posted July 23, 2004 Not sure about v7, but in earlier versions of FileMaker, you would have to run an external script to change Files. HTH Lee
spankalee Posted July 23, 2004 Author Posted July 23, 2004 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.
spankalee Posted July 23, 2004 Author Posted July 23, 2004 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.
Recommended Posts
This topic is 7431 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 accountSign in
Already have an account? Sign in here.
Sign In Now