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

MBS FileMaker Plugin Example Databases

TouchBar

All examples are included with download of MBS FileMaker Plugin.

TouchBar.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts9
Value Lists0
Custom Functions0
Custom Menus24
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
OnFirstWindowOpenScript: Start
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
TouchBar
2 fields defined, 5 records
TouchBar

Fields

Table Name: TouchBar - 2 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
MBSNormal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Global
  • Repetitions: 1
      TestNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German

            Layout Objects: TouchBar

            Regular Fields

            Field Name: TouchBar::MBS
            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
            • Top: 9 pt
            • Left: 864 pt
            • Bottom: 45 pt
            • Right: 918 pt
            • Anchoring: Left, Top
            Field Format:
            • Edit Box
            Field Behavior:
            • Allow field to be entered: In Find mode, In Browse mode
            • Touch keyboard type: Default for Data Type
            • Go to next field using: Tab key
            No

            Field Name: TouchBar::Test
            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
            • Top: 65 pt
            • Left: 118 pt
            • Bottom: 86 pt
            • Right: 371 pt
            • Anchoring: Left, Top
            Field Format:
            • Edit Box
            Field Behavior:
            • Allow field to be entered: In Find mode, In Browse mode
            • Touch keyboard type: Default for Data Type
            • Go to next field using: Tab key
            Yes

            Buttons

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text: Customize TouchBar
            • Top: 13 pt
            • Left: 647 pt
            • Bottom: 39 pt
            • Right: 793 pt
            • Anchoring: Left, Top
            Perform Script [ “Toggle Customization” ]

            Scripts:


            Script Hierarchy

            BuildAppTouchBar
            BuildWindowTouchBar
            Start
            Toggle Customization
            TouchBar Actions
            AddRecordTouchBar
            PrevRecordTouchBar
            NextRecordTouchBar
            DeleteRecordTouchBar
            InfoTouchBar

            Next Script: [BuildWindowTouchBar]
            Script NameBuildAppTouchBar
            Run script with full access privilegesOff
            Include In MenuYes
            Layouts that use this script
              Scripts that use this script
              Script Definition
              Script Steps
              • #Create a new TouchBar
              • Set Variable [ $t; Value:MBS( "TouchBar.Create" ) ]
              • #Add two buttons
              • Set Variable [ $r; Value:MBS( "TouchBar.AddButton"; $t; "AddRecord"; ""; "NSImageNameTouchBarAddTemplate"; "Add"; 0; Get(FileName); "AddRecordTouchBar" ) ]
              • Set Variable [ $r; Value:MBS( "TouchBar.AddButton"; $t; "DeleteRecord"; ""; "NSImageNameTouchBarDeleteTemplate"; "Delete"; 0; Get(FileName); "DeleteRecordTouchBar" ) ]
              • Set Variable [ $r; Value:MBS( "TouchBar.AddButton"; $t; "InfoButton"; ""; TouchBar::MBS; "Info"; 0; Get(FileName); "InfoTouchBar" ) ]
              • Set Variable [ $r; Value:MBS( "TouchBar.AddButton"; $t; "DataViewerButton"; "DataViewer"; ""; "DataViewer"; 0; ""; ""; "MBS(\"Menubar.RunMenuCommand\"; 49297)" ) ]
              • Set Variable [ $r; Value:MBS( "TouchBar.AddButton"; $t; "DebuggerButton"; "Debugger"; ""; "Debugger"; 0; ""; ""; "MBS(\"Menubar.RunMenuCommand\"; 49260)" ) ]
              • #Set which button show by default:
              • Set Variable [ $r; Value:MBS( "TouchBar.SetDefaultItemIdentifiers"; $t; "AddRecord¶InfoButton¶NSTouchBarItemIdentifierOtherItemsProxy¶DataViewerButton¶DebuggerButton") ]
              • #Set the primary button:
              • Set Variable [ $r; Value:MBS( "TouchBar.SetPrincipalItemIdentifier"; $t; "AddRecord" ) ]
              • #Set which buttons can be configured:
              • Set Variable [ $r; Value:MBS( "TouchBar.SetCustomizationAllowedItemIdentifiers"; $t; "AddRecord¶InfoButton¶NSTouchBarItemIdentifierOtherItemsProxy¶DeleteRecord¶DebuggerButton¶DataViewerButton") ]
              • #Set this touch bar to be the app one:
              • Set Variable [ $r; Value:MBS( "TouchBar.AssignToApp"; $t ) ]
              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

                      Previous Script: [BuildAppTouchBar]Next Script: [Start]
                      Script NameBuildWindowTouchBar
                      Run script with full access privilegesOff
                      Include In MenuYes
                      Layouts that use this script
                        Scripts that use this script
                        Script Definition
                        Script Steps
                        • #Create a new TouchBar
                        • Set Variable [ $t; Value:MBS( "TouchBar.Create" ) ]
                        • #Add two buttons
                        • Set Variable [ $r; Value:MBS( "TouchBar.AddButton"; $t; "PrevRecord"; ""; "NSImageNameTouchBarGoBackTemplate"; "Previous"; 0; Get(FileName); "PrevRecordTouchBar" ) ]
                        • Set Variable [ $r; Value:MBS( "TouchBar.AddButton"; $t; "NextRecord"; ""; "NSImageNameTouchBarGoForwardTemplate"; "Next"; 0; Get(FileName); "NextRecordTouchBar" ) ]
                        • #Set which button show by default:
                        • Set Variable [ $r; Value:MBS( "TouchBar.SetDefaultItemIdentifiers"; $t; "PrevRecord¶NextRecord¶NSTouchBarItemIdentifierOtherItemsProxy") ]
                        • #Set the primary button:
                        • Set Variable [ $r; Value:MBS( "TouchBar.SetPrincipalItemIdentifier"; $t; "NextRecord" ) ]
                        • #Set which buttons can be configured:
                        • Set Variable [ $r; Value:MBS( "TouchBar.SetCustomizationAllowedItemIdentifiers"; $t; "PrevRecord¶NextRecord") ]
                        • #Assign touchbar to current window:
                        • Set Variable [ $r; Value:MBS( "TouchBar.AssignToWindow"; $t; 0 ) ]
                        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

                                      Previous Script: [BuildWindowTouchBar]Next Script: [Toggle Customization]
                                      Script NameStart
                                      Run script with full access privilegesOff
                                      Include In MenuYes
                                      Layouts that use this script
                                        Scripts that use this script
                                          Script Definition
                                          Script Steps
                                          • If [ MBS( "TouchBar.Available" ) ]
                                          • Perform Script [ “BuildAppTouchBar” ]
                                          • Perform Script [ “BuildWindowTouchBar” ]
                                          • Else
                                          • Show Custom Dialog [ Message: "No TouchBar supported on this Mac."; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                          • End If
                                          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

                                                      Previous Script: [Start]
                                                      Script NameToggle Customization
                                                      Run script with full access privilegesOff
                                                      Include In MenuYes
                                                      Layouts that use this script
                                                      Scripts that use this script
                                                        Script Definition
                                                        Script Steps
                                                        • If [ MBS( "TouchBar.Available" ) ]
                                                        • Set Variable [ $r; Value:MBS("TouchBar.ToggleCustomizationPalette") ]
                                                        • Else
                                                        • Show Custom Dialog [ Message: "No TouchBar supported on this Mac."; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                        • End If
                                                        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

                                                                      TouchBar Actions

                                                                      Parent Folder: [TouchBar Actions]Next Script: [PrevRecordTouchBar]
                                                                      Script NameAddRecordTouchBar
                                                                      Run script with full access privilegesOff
                                                                      Include In MenuYes
                                                                      Layouts that use this script
                                                                        Scripts that use this script
                                                                          Script Definition
                                                                          Script Steps
                                                                          • New Record/Request
                                                                          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

                                                                                        Previous Script: [AddRecordTouchBar]Parent Folder: [TouchBar Actions]Next Script: [NextRecordTouchBar]
                                                                                        Script NamePrevRecordTouchBar
                                                                                        Run script with full access privilegesOff
                                                                                        Include In MenuYes
                                                                                        Layouts that use this script
                                                                                          Scripts that use this script
                                                                                            Script Definition
                                                                                            Script Steps
                                                                                            • Go to Record/Request/Page [ Previous ]
                                                                                            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

                                                                                                          Previous Script: [PrevRecordTouchBar]Parent Folder: [TouchBar Actions]Next Script: [DeleteRecordTouchBar]
                                                                                                          Script NameNextRecordTouchBar
                                                                                                          Run script with full access privilegesOff
                                                                                                          Include In MenuYes
                                                                                                          Layouts that use this script
                                                                                                            Scripts that use this script
                                                                                                              Script Definition
                                                                                                              Script Steps
                                                                                                              • Go to Record/Request/Page [ Next ]
                                                                                                              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

                                                                                                                            Previous Script: [NextRecordTouchBar]Parent Folder: [TouchBar Actions]Next Script: [InfoTouchBar]
                                                                                                                            Script NameDeleteRecordTouchBar
                                                                                                                            Run script with full access privilegesOff
                                                                                                                            Include In MenuYes
                                                                                                                            Layouts that use this script
                                                                                                                              Scripts that use this script
                                                                                                                                Script Definition
                                                                                                                                Script Steps
                                                                                                                                • Show Custom Dialog [ Message: "Sorry, we don't delete in this sample."; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                                                                                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

                                                                                                                                              Previous Script: [DeleteRecordTouchBar]Parent Folder: [TouchBar Actions]
                                                                                                                                              Script NameInfoTouchBar
                                                                                                                                              Run script with full access privilegesOff
                                                                                                                                              Include In MenuYes
                                                                                                                                              Layouts that use this script
                                                                                                                                                Scripts that use this script
                                                                                                                                                  Script Definition
                                                                                                                                                  Script Steps
                                                                                                                                                  • Show Custom Dialog [ Title: "MBS Version"; Message: MBS("version"); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                                                                                                  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: TouchBar

                                                                                                                                                                Used functions: