Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MBS FileMaker Plugin Example Databases

DefineQuickMenu with XML

All examples are included with download of MBS FileMaker Plugin.

DefineQuickMenu with XML.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts1
Value Lists0
Custom Functions0
Custom Menus33
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
DefineQuickMenu
4 fields defined, 5 records
DefineQuickMenu

Fields

Table Name: DefineQuickMenu - 4 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
Menu DefinitionNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      Selected TitleNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          Selected TagNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              DescriptionNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German

                    Layout Objects: DefineQuickMenu

                    Regular Fields

                    Field Name: DefineQuickMenu::Menu Definition
                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                    • Top: 36 pt
                    • Left: 138 pt
                    • Bottom: 98 pt
                    • Right: 553 pt
                    • Anchoring: Left, Top
                    Field Format:
                    • Edit Box
                    Field Behavior:
                    • Allow field to be entered: In Find mode, In Browse mode
                    • Touch keyboard type: System Default
                    • Go to next field using: Tab key
                    Yes

                    Field Name: DefineQuickMenu::Selected Title
                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                    • Top: 108 pt
                    • Left: 138 pt
                    • Bottom: 122 pt
                    • Right: 391 pt
                    • Anchoring: Left, Top
                    Field Format:
                    • Edit Box
                    Field Behavior:
                    • Allow field to be entered: In Find mode, In Browse mode
                    • Touch keyboard type: System Default
                    • Go to next field using: Tab key
                    Yes

                    Field Name: DefineQuickMenu::Selected Tag
                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                    • Top: 126 pt
                    • Left: 138 pt
                    • Bottom: 140 pt
                    • Right: 391 pt
                    • Anchoring: Left, Top
                    Field Format:
                    • Edit Box
                    Field Behavior:
                    • Allow field to be entered: In Find mode, In Browse mode
                    • Touch keyboard type: System Default
                    • Go to next field using: Tab key
                    Yes

                    Field Name: DefineQuickMenu::Description
                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                    • Top: 144 pt
                    • Left: 138 pt
                    • Bottom: 158 pt
                    • Right: 391 pt
                    • Anchoring: Left, Top
                    Field Format:
                    • Edit Box
                    Field Behavior:
                    • Allow field to be entered: In Find mode, In Browse mode
                    • Touch keyboard type: System Default
                    • Go to next field using: Tab key
                    Yes

                    Group Buttons

                    Button PropertiesCoordinatesScript/Script Step
                      Type:
                    • Text: Show Menu
                      Additional Properties:
                    • Change to hand cursor over button
                    • Rectangular
                    • Top: 102 pt
                    • Left: 426 pt
                    • Bottom: 133 pt
                    • Right: 553 pt
                    • Anchoring: Left, Top
                    Perform Script [ “ShowMenu” ]

                    Scripts:


                    Script Hierarchy

                    ShowMenu

                    Script NameShowMenu
                    Run script with full access privilegesOff
                    Include In MenuYes
                    Layouts that use this script
                    Scripts that use this script
                      Script Definition
                      Script Steps
                      • Set Field [ DefineQuickMenu::Selected Title; "" ]
                      • Set Field [ DefineQuickMenu::Selected Tag; "" ]
                      • Set Variable [ $menu; Value:MBS("Menu.DefineQuickMenuXML"; DefineQuickMenu::Menu Definition) ]
                      • Set Variable [ $result; Value:MBS("Menu.PopUp"; $menu; "mouse") ]
                      • If [ $result = 1 ]
                      • Set Variable [ $item; Value:MBS("Menu.SelectedItem"; $menu) ]
                      • If [ Length($item) > 0 ]
                      • Set Field [ DefineQuickMenu::Selected Title; MBS("MenuItem.GetTitle"; $item) ]
                      • Set Field [ DefineQuickMenu::Selected Tag; MBS("MenuItem.GetTag"; $item) ]
                      • End If
                      • End If
                      • Set Variable [ $r; Value:MBS("Menu.Release"; $menu) ]
                      Fields used in this script
                      Scripts used in this script
                        Layouts used in this script
                          Tables used in this script
                          Table occurrences used by this script
                          Custom Functions used by this script
                            Custom menu set used by this script

                              Download example: DefineQuickMenu with XML

                              Used functions: