3 Replies Latest reply on Sep 22, 2015 9:28 AM by everyman

    Custom Menu Item: "Install when" broken?

    everyman

      Background:

      A custom menu item should appear only when the "Install when:" condition is met.  In the example file there are two fields: "name" and "toggle".  When "toggle" is set to 1, the menu item (un-toggle) should be installed; otherwise, the menu should be empty.

       

      Test Environment:

      FMP 13 and FMP 14, OS X 10.9.

       

      Problem:

      The menu item does not appear even if the condition is met unless the menu is re-installed.  Once the item appears, it remains in the menu even if the condition is no longer true unless the menu is re-installed.


      If toggle is set interactively (checkbox on the layout) the menu item does not appear or disappear as expected, but only after some other intervening event.  See the example file for this and other anomalous behavior.


      Diagnosis:

      The condition is not tested unless something forces the menu to be re-installed.  "Refresh Window" with flush caches checked was not sufficient.  Clicking in another (non-FIleMaker) window and then bringing FileMaker to the foreground again will trigger the menu install.

       

      Workaround:

      "On Record Load" trigger to install the custom menu.

       

      Question:

      Is this the expected/accepted behavior?  I'd have thought that simply installing the custom menu once (say, at file open or layout entry) would be enough.