MBS FileMaker Plugin Example Databases

Sharing Services

All examples are included with download of MBS FileMaker Plugin.

Sharing Services.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
Sharing Services
10 fields defined, 5 records
Sharing Services

Fields

Table Name: Sharing Services - 10 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
ServiceNameNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      URLsNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          TextNormal, 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:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
                  File PathsNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                      Email SubjectNormal, TextAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                      • Indexing: None
                      • Automatically create indexes as needed
                      • Index Language: German
                          Email RecipientsNormal, TextAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                              ServiceNamesNormal, TextAuto-Enter:
                              • Allow editing
                              Validation:
                              • Only during data entry
                              Storage:
                              • Repetitions: 1
                              • Indexing: None
                              • Automatically create indexes as needed
                              • Index Language: German
                                  ResultNormal, 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: Sharing Services

                                            Regular Fields

                                            Field Name: Sharing Services::ServiceName
                                            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: Sharing Services::URLs
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 75 pt
                                            • Left: 138 pt
                                            • Bottom: 96 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: Sharing Services::Text
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 98 pt
                                            • Left: 138 pt
                                            • Bottom: 149 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: Sharing Services::Image
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 151 pt
                                            • Left: 137 pt
                                            • Bottom: 276 pt
                                            • Right: 390 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: Sharing Services::File Paths
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 278 pt
                                            • Left: 137 pt
                                            • Bottom: 299 pt
                                            • Right: 390 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: Sharing Services::Email Subject
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 301 pt
                                            • Left: 137 pt
                                            • Bottom: 322 pt
                                            • Right: 390 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: Sharing Services::Email Recipients
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 324 pt
                                            • Left: 137 pt
                                            • Bottom: 345 pt
                                            • Right: 390 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: Sharing Services::ServiceNames
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 96 pt
                                            • Left: 631 pt
                                            • Bottom: 536 pt
                                            • Right: 1009 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: Sharing Services::Result
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 405 pt
                                            • Left: 137 pt
                                            • Bottom: 468 pt
                                            • Right: 390 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: Sharing Services::Description
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 470 pt
                                            • Left: 137 pt
                                            • Bottom: 538 pt
                                            • Right: 390 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: Share Items
                                            • Top: 359 pt
                                            • Left: 137 pt
                                            • Bottom: 391 pt
                                            • Right: 265 pt
                                            • Anchoring: Left, Top
                                            Perform Script [ “Share Items” ]

                                            Scripts:


                                            Button PropertiesCoordinatesScript/Script Step
                                              Type:
                                            • Text: Services for Items
                                            • Top: 55 pt
                                            • Left: 631 pt
                                            • Bottom: 87 pt
                                            • Right: 814 pt
                                            • Anchoring: Left, Top
                                            Perform Script [ “Services for Items” ]

                                            Scripts:


                                            Script Hierarchy

                                            Services for Items
                                            Share Items
                                            Clear Result
                                            Trigger

                                            Next Script: [Share Items]
                                            Script NameServices for Items
                                            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 [ $json; Value:MBS("SharingService.ServicesForItems"; 0; // flags, no images // pass as many parameter with items. Empty ones will be ignore. Sharing Services::URLs; Sharing Services::Text; Sharing Services::Image; Sharing Services::File Paths) ]
                                              • If [ MBS("IsError") = 0 ]
                                              • Set Variable [ $json; Value:MBS("JSON.Colorize"; $json) ]
                                              • End If
                                              • Set Field [ Sharing Services::ServiceNames; $json ]
                                              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: [Services for Items]Next Script: [Clear Result]
                                                      Script NameShare Items
                                                      Run script with full access privilegesOff
                                                      Include In MenuNo
                                                      Layouts that use this script
                                                      Scripts that use this script
                                                        Script Definition
                                                        Script Steps
                                                        • #for the case you use email, we may predefine the subject & recipients we suggest
                                                        • Set Variable [ $r; Value:MBS("SharingService.SetEmailSubject"; Sharing Services::Email Subject) ]
                                                        • Set Variable [ $r; Value:MBS("SharingService.SetEmailRecipients"; Sharing Services::Email Recipients) ]
                                                        • #set trigger
                                                        • Set Variable [ $r; Value:MBS("SharingService.SetTrigger"; Get(FileName); "Trigger") ]
                                                        • #share them
                                                        • Set Variable [ $r; Value:MBS("SharingService.ShareItems"; Sharing Services::ServiceName; // pass as many parameter with items. Empty ones will be ignore. Sharing Services::URLs; Sharing Services::Text; Sharing Services::Image; Sharing Services::File Paths) ]
                                                        • Set Field [ Sharing Services::Result; $r ]
                                                        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: [Share Items]Next Script: [Trigger]
                                                                Script NameClear Result
                                                                Run script with full access privilegesOff
                                                                Include In MenuYes
                                                                Layouts that use this script
                                                                  Scripts that use this script
                                                                    Script Definition
                                                                    Script Steps
                                                                    • Replace Field Contents [ Sharing Services::Result; Replace with calculation: "" ] [ No dialog ]
                                                                    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: [Clear Result]
                                                                            Script NameTrigger
                                                                            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 [ $json; Value:Get(ScriptParameter) ]
                                                                                • Set Variable [ $json; Value:MBS("JSON.Colorize"; $json) ]
                                                                                • Set Field [ Sharing Services::Result; $json ]
                                                                                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: Sharing Services

                                                                                        Used functions:




                                                                                        Links
                                                                                        MBS Xojo blog