January 28, 20178 yr Newbies 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.
January 29, 20178 yr Author Newbies 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, 20178 yr by fvteamsports
January 29, 20178 yr 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
January 29, 20178 yr Author Newbies 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!
January 30, 20178 yr 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.
January 30, 20178 yr Author Newbies 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.
January 30, 20178 yr 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).
Create an account or sign in to comment