anothersmurf Posted July 29, 2009 Share Posted July 29, 2009 When creating a custom menu, is there a way to toggle a check mark to appear beside a menu item? (Like how there's a check mark next to Browse in the View menu when you're in Browse mode.) Thanks. Link to comment Share on other sites More sharing options...
mr_vodka Posted July 29, 2009 Share Posted July 29, 2009 Not as a setting. However, you maybe able to mimick it by changing the calculation of the title override which would include a star or dot etc. Link to comment Share on other sites More sharing options...
anothersmurf Posted July 29, 2009 Author Share Posted July 29, 2009 That's what I tried first: I used an if statement to make the menu item change to Enable or Disable based on a global field. But in practice, FileMaker never reevaluates that calculation... so no matter what, the name of the menu item doesn't change. Am I missing something? Link to comment Share on other sites More sharing options...
jamesducker Posted July 29, 2009 Share Posted July 29, 2009 Any chance you could post a sample file? James Link to comment Share on other sites More sharing options...
anothersmurf Posted July 29, 2009 Author Share Posted July 29, 2009 Here you go. menu.fp7.zip Link to comment Share on other sites More sharing options...
jamesducker Posted July 29, 2009 Share Posted July 29, 2009 You are absolutely right, but I have no idea why. I managed to make it work as you want it to by adding an 'install menu set' command at the end of your script. Seems to make FileMaker refresh the menu items. Bit of a bodge, and shouldn't have been necessary, but it works. Working file attached. I have subscribed to this thread and would be interested if you ever find out why it is happening. My first thought was because the field is global and therefore unindexed, but that doesn't seem to make any difference. Always a good idea to make sure the record is committed after toggling, too. James menu_fixed.fp7.zip Link to comment Share on other sites More sharing options...
anothersmurf Posted July 29, 2009 Author Share Posted July 29, 2009 Thanks for the workaround, James. I hadn't thought of trying that. Link to comment Share on other sites More sharing options...
mr_vodka Posted July 29, 2009 Share Posted July 29, 2009 (edited) This is because simply changing the global field doesnt not do anything to allow the custom menus to load again, therefore not refreshing them. You could see the effects by simply going into Find mode and then back to browse mode. P.S. There was a previous thread on this about a year ago but I can not seem to locate it. Edited July 29, 2009 by Guest added PS Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 5386 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