MBS FileMaker Plugin Example Databases

Receive System Notifications

All examples are included with download of MBS FileMaker Plugin.

Receive System Notifications.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
Receive System Notifications
4 fields defined, 3 records
Receive System Notifications

Fields

Table Name: Receive System Notifications - 4 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
NameNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      Param1Normal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          Param2Normal, 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: Receive System Notifications

                  Regular Fields

                  Field Name: Receive System Notifications::Name
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 63 pt
                  • Left: 83 pt
                  • Bottom: 85 pt
                  • Right: 336 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: Receive System Notifications::Param1
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 64 pt
                  • Left: 432 pt
                  • Bottom: 86 pt
                  • Right: 685 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: Receive System Notifications::Param2
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 88 pt
                  • Left: 432 pt
                  • Bottom: 110 pt
                  • Right: 685 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: Receive System Notifications::Description
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 87 pt
                  • Left: 83 pt
                  • Bottom: 109 pt
                  • Right: 336 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: Listen
                  • Top: 9 pt
                  • Left: 18 pt
                  • Bottom: 39 pt
                  • Right: 150 pt
                  • Anchoring: Left, Top
                  Perform Script [ “Listen” ]

                  Scripts:


                  Script Hierarchy

                  Listen
                  TimeTrigger
                  DisplayTrigger
                  DeviceTrigger

                  Next Script: [TimeTrigger]
                  Script NameListen
                  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("Notification.UnlistenAll") ]
                    • Delete All Records [ No dialog ]
                    • #Register a few notifications
                    • Set Variable [ $r; Value:MBS("Notification.Listen"; 31; Get(FileName); "TimeTrigger") // System Time Change ]
                    • Set Variable [ $r; Value:MBS("Notification.Listen"; 126; Get(FileName); "DisplayTrigger") // Display Change ]
                    • Set Variable [ $r; Value:MBS("Notification.Listen"; 537; Get(FileName); "DeviceTrigger") // Device Change ]
                    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: [Listen]Next Script: [DisplayTrigger]
                                  Script NameTimeTrigger
                                  Run script with full access privilegesOff
                                  Include In MenuYes
                                  Layouts that use this script
                                    Scripts that use this script
                                      Script Definition
                                      Script Steps
                                      • #We got notification for time change
                                      • New Record/Request
                                      • Set Variable [ $name; Value:GetValue(Get(ScriptParameter); 1) ]
                                      • Set Variable [ $p1; Value:GetValue(Get(ScriptParameter); 2) ]
                                      • Set Variable [ $p2; Value:GetValue(Get(ScriptParameter); 3) ]
                                      • Set Field [ Receive System Notifications::Name; $name ]
                                      • Set Field [ Receive System Notifications::Param1; $p1 ]
                                      • Set Field [ Receive System Notifications::Param2; $p2 ]
                                      • Commit Records/Requests [ Skip data entry validation ]
                                      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: [TimeTrigger]Next Script: [DeviceTrigger]
                                              Script NameDisplayTrigger
                                              Run script with full access privilegesOff
                                              Include In MenuYes
                                              Layouts that use this script
                                                Scripts that use this script
                                                  Script Definition
                                                  Script Steps
                                                  • #We got notification for display setup change
                                                  • New Record/Request
                                                  • Set Variable [ $name; Value:GetValue(Get(ScriptParameter); 1) ]
                                                  • Set Variable [ $p1; Value:GetValue(Get(ScriptParameter); 2) ]
                                                  • Set Variable [ $p2; Value:GetValue(Get(ScriptParameter); 3) ]
                                                  • Set Variable [ $w; Value:MBS( "Math.BitwiseAND"; $p2; 65535) ]
                                                  • Set Variable [ $h; Value:MBS( "Math.BitwiseShiftRight"; $p2; 16) ]
                                                  • Set Field [ Receive System Notifications::Name; $name ]
                                                  • Set Field [ Receive System Notifications::Param1; $p1 ]
                                                  • Set Field [ Receive System Notifications::Param2; $p2 ]
                                                  • Set Field [ Receive System Notifications::Description; "New resolution: " & $w & " x " & $h ]
                                                  • Commit Records/Requests [ Skip data entry validation ]
                                                  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: [DisplayTrigger]
                                                          Script NameDeviceTrigger
                                                          Run script with full access privilegesOff
                                                          Include In MenuYes
                                                          Layouts that use this script
                                                            Scripts that use this script
                                                              Script Definition
                                                              Script Steps
                                                              • #We got notification for device changes like DVD mount/unmount
                                                              • New Record/Request
                                                              • Set Variable [ $name; Value:GetValue(Get(ScriptParameter); 1) ]
                                                              • Set Variable [ $p1; Value:GetAsNumber ( GetValue(Get(ScriptParameter); 2) ) ]
                                                              • Set Variable [ $p2; Value:GetAsNumber (GetValue(Get(ScriptParameter); 3) ) ]
                                                              • Set Variable [ $r; Value:MBS("Log"; "p1: "; $p1) ]
                                                              • Set Variable [ $desc; Value:Case ( $p1 = 32768; "system detected a new device"; $p1 = 32769; "wants to remove device, may fail"; $p1 = 32770; "removal aborted"; $p1 = 32771; "about to remove, still avail."; $p1 = 32772; "device is gone"; $p1 = 32773; "type specific event"; "?" ) ]
                                                              • Set Field [ Receive System Notifications::Name; $name ]
                                                              • Set Field [ Receive System Notifications::Param1; $p1 ]
                                                              • Set Field [ Receive System Notifications::Param2; $p2 ]
                                                              • Set Field [ Receive System Notifications::Description; $desc ]
                                                              • Commit Records/Requests [ Skip data entry validation ]
                                                              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: Receive System Notifications

                                                                      Used functions:




                                                                      Links
                                                                      MBS FileMaker Plugins