AnsweredAssumed Answered

Script Trigger OnLayoutLoad triggers on exit when opening a new window

Question asked by learningmedia on Jul 26, 2010
Latest reply on Jul 27, 2010 by learningmedia

Summary

Script Trigger OnLayoutLoad triggers on exit when opening a new window

Product

FileMaker Pro

Version

Filemaker 11.0.2 Advanced

Operating system version

Mac OS 10.6.4

Description of the issue

Not sure if this is a bug or they way Layout Script triggers are meant to work - but it's very confusing and not explained at all in the help.

If you set a script to trigger "OnLayoutEnter" it will trigger when you switch to a layout as expected. However it also run on exit if you open a new window but not if you change layout on the same window.

Is this how it's designed to work? If so can you explain the rationale - otherwise could it be logged as a bug.

Many thanks,
Gary

Steps to reproduce the problem

Setup a script to display a dialog box
Setup a script trigger on a layout "trigger layout" to run this script "OnLayoutEnter"
Create a second layout "home" and create two buttons on "trigger layout"

Button 1 should just perform "Go to Layout - Home"

Button 2 should "open a new window and Go to Layout - Home"

Expected result

Both button 1 and 2 should just open the home layout and not trigger the dialog box.

Actual result

Button 1 acts as expected - however

button 2 will actually trigger the dialog box - as it appears to trigger a load of the window on exit when a new window is opened.

Outcomes