MBS FileMaker Plugin Example Databases

Color Panel

All examples are included with download of MBS FileMaker Plugin.

Color Panel.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts4
Value Lists0
Custom Functions0
Custom Menus0
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
Color Panel
5 fields defined, 3 records
Color Panel

Fields

Table Name: Color Panel - 5 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
ColorNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      ImageNormal, BinaryAuto-Enter: Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
            RedNormal, NumberAuto-Enter:
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  GreenNormal, NumberAuto-Enter:
                    Validation:
                    • Only during data entry
                    Storage:
                    • Repetitions: 1
                    • Indexing: None
                    • Automatically create indexes as needed
                    • Index Language: German
                        BlueNormal, NumberAuto-Enter:
                          Validation:
                          • Only during data entry
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German

                              Layout Objects: Color Panel

                              Regular Fields

                              Field Name: Color Panel::Color
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 52 pt
                              • Left: 138 pt
                              • Bottom: 73 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: Default for Data Type
                              • Go to next field using: Tab key
                              Yes

                              Field Name: Color Panel::Image
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 75 pt
                              • Left: 138 pt
                              • Bottom: 200 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: Default for Data Type
                              • Go to next field using: Tab key
                              No

                              Field Name: Color Panel::Red
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 62 pt
                              • Left: 802 pt
                              • Bottom: 83 pt
                              • Right: 881 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

                              Field Name: Color Panel::Green
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 85 pt
                              • Left: 802 pt
                              • Bottom: 106 pt
                              • Right: 881 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

                              Field Name: Color Panel::Blue
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 108 pt
                              • Left: 802 pt
                              • Bottom: 129 pt
                              • Right: 881 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: Pick Color
                              • Top: 73 pt
                              • Left: 526 pt
                              • Bottom: 114 pt
                              • Right: 685 pt
                              • Anchoring: Left, Top
                              Perform Script [ “Pick Color” ]

                              Scripts:


                              Button PropertiesCoordinatesScript/Script Step
                                Type:
                              • Text: Hide
                              • Top: 129 pt
                              • Left: 526 pt
                              • Bottom: 170 pt
                              • Right: 685 pt
                              • Anchoring: Left, Top
                              Set Variable [ $r; Value:MBS( "ColorPanel.Hide" ) ]

                              Script Hierarchy

                              Pick Color Mac
                              Pick Color Win
                              Pick Color
                              colorChanged

                              Next Script: [Pick Color Win]
                              Script NamePick Color Mac
                              Run script with full access privilegesOff
                              Include In MenuYes
                              Layouts that use this script
                                Scripts that use this script
                                Script Definition
                                Script Steps
                                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: [Pick Color Mac]Next Script: [Pick Color]
                                        Script NamePick Color Win
                                        Run script with full access privilegesOff
                                        Include In MenuYes
                                        Layouts that use this script
                                          Scripts that use this script
                                          Script Definition
                                          Script Steps
                                          • Set Variable [ $r; Value:MBS( "ColorPanel.Choose"; Color Panel::Color ) ]
                                          • If [ MBS("IsError") ]
                                          • Show Custom Dialog [ Title: "Failed to choose color"; Message: $r; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                          • Else If [ $r = "Cancel" ]
                                          • #nothing
                                          • Else
                                          • Set Variable [ $red; Value:Middle ( $r; 2; 2) ]
                                          • Set Variable [ $green; Value:Middle ( $r; 4; 2) ]
                                          • Set Variable [ $blue; Value:Middle ( $r; 6; 2) ]
                                          • Set Field [ Color Panel::Color; $r ]
                                          • Set Field [ Color Panel::Red; MBS( "Math.HexToDec"; $red) ]
                                          • Set Field [ Color Panel::Green; MBS( "Math.HexToDec"; $green) ]
                                          • Set Field [ Color Panel::Blue; MBS( "Math.HexToDec"; $blue) ]
                                          • 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: [Pick Color Win]Next Script: [colorChanged]
                                                  Script NamePick Color
                                                  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("isWindows") ]
                                                    • Perform Script [ “Pick Color Win” ]
                                                    • Else If [ MBS("isMacOS") ]
                                                    • Perform Script [ “Pick Color Mac” ]
                                                    • 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: [Pick Color]
                                                                Script NamecolorChanged
                                                                Run script with full access privilegesOff
                                                                Include In MenuNo
                                                                Layouts that use this script
                                                                  Scripts that use this script
                                                                    Script Definition
                                                                    Script Steps
                                                                    • Set Variable [ $c; Value:MBS( "ColorPanel.GetColor" ) ]
                                                                    • If [ MBS("IsError") = 0 ]
                                                                    • Set Field [ Color Panel::Color; "#" & $c ]
                                                                    • Set Variable [ $c; Value:MBS( "ColorPanel.GetColor"; 1 ) ]
                                                                    • Set Variable [ $red; Value:GetValue($c; 1) ]
                                                                    • Set Variable [ $green; Value:GetValue($c; 2) ]
                                                                    • Set Variable [ $blue; Value:GetValue($c; 3) ]
                                                                    • Set Field [ Color Panel::Red; $red ]
                                                                    • Set Field [ Color Panel::Green; $green ]
                                                                    • Set Field [ Color Panel::Blue; $blue ]
                                                                    • 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

                                                                            Download example: Color Panel

                                                                            Used functions:




                                                                            Links
                                                                            MBS Xojo PDF Plugins