Newbies fvteamsports Posted January 28, 2017 Newbies Posted January 28, 2017 I'm using FM Starting Point and duplicated the Invoice "module" (layout with tables, tos, etc.) to create an Orders "module". I dutifully went through and changed the fields, relationships, scripts, etc. etc. However, when I click Add Item and the Popover Button appears, when I select a product it is not being added to the order. So I ran the debugger while going through the process and the debugger shows that the old OnObjectExit script (from the Invoice "module") is being called for. I double checked all the scripts and TOs and everything and all do indicate they are the correct new ones I created (by duplicating the Invoice ones) for the orders. So why is it still calling for the old script? And how do I fix it? I tried clicking Edit Script in the Debugger but it is grayed out when running the Debugger.
bcooney Posted January 29, 2017 Posted January 29, 2017 Does the popover have any script triggers attached? Specifically, OnObjectExit.
Newbies fvteamsports Posted January 29, 2017 Author Newbies Posted January 29, 2017 (edited) Yes it has an OnObjectExit set to trigger a script. The problem is when I run it through the debugger it is bringing up a different script. I don't understand where it is getting this from? The weird thing is I can delete the OnObjectExit trigger and it will still call for that wrong script. Seems something else is triggering it, I just can't find it. Edited January 29, 2017 by fvteamsports
Lee Smith Posted January 29, 2017 Posted January 29, 2017 This help page answers the problem with script triggers. Enable/Disable ScriptTriggers http://www.filemaker.com/help/15/fmp/en/#page/FMP_Help%2Fdebugging-scripts.html HTH Lee
Newbies fvteamsports Posted January 29, 2017 Author Newbies Posted January 29, 2017 So I figured it out! It was the button that is over the Add Item Popover portal fields in the Invoices "module"...I had moved it behind the portal fields (Send Backward) when I duplicated it so that I could update the portal fields (you can't click on the fields when the button is over them). However, once it was moved, I couldn't see it and basically forgot about it. There isn't any little script icon attached to it either, so I was forgetting about it when I made all the script changes. And even though it was under the fields, it was still activating. Once I figured out what was going on, I found the button underneath the fields and was able to fix the script and the parameters. BOOM! Works like a charm now. Thanks for the replies and suggestions!
bcooney Posted January 30, 2017 Posted January 30, 2017 Layered objects are so challenging. Especially now when they can have triggers. I look forward to the version that lists all a layouts objects more clearly.
Newbies fvteamsports Posted January 30, 2017 Author Newbies Posted January 30, 2017 I Agree. Especially when you're working on a layout another developer has started. A button that doesn't have any borders is basically invisible to add to the challenge. The view>button helped, it adds a small icon to the buttons in the lower right corner. A simple object manager like what Corel Draw or Photoshop has would have saved me 2 days of work. It would be nice to be able to click through all objects on a layout. They could add it to the inspector.
bcooney Posted January 30, 2017 Posted January 30, 2017 I think it's a planned feature. I try to document layers by just adding a text block on the right far side of a layout (the offscreen section). 1
Recommended Posts
This topic is 2865 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