MBS FileMaker Plugin Example Databases

iOS Social Posting

All examples are included with download of MBS FileMaker Plugin.

iOS Social Posting.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts2
Value Lists1
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
iOS Social Posting
7 fields defined, 1 record
iOS Social Posting

Fields

Table Name: iOS Social Posting - 7 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
ServiceNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
  • Value list: Services
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: English
      TextNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: English
          URLNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: English
              Attachment1Normal, BinaryAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
                  Attachment2Normal, BinaryAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                      Attachment3Normal, BinaryAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                          ResultNormal, TextAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: English

                              Layout Objects: iOS Social Posting

                              Regular Fields

                              Field Name: iOS Social Posting::Service
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 59 pt
                              • Left: 98 pt
                              • Bottom: 80 pt
                              • Right: 316 pt
                              • Anchoring: Left, Top
                              Field Format:
                              • Drop-down List
                              • Display values from: Services
                              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: iOS Social Posting::Text
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 82 pt
                              • Left: 98 pt
                              • Bottom: 103 pt
                              • Right: 316 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: iOS Social Posting::URL
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 105 pt
                              • Left: 98 pt
                              • Bottom: 126 pt
                              • Right: 316 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: iOS Social Posting::Attachment1
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 151 pt
                              • Left: 98 pt
                              • Bottom: 276 pt
                              • Right: 316 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: iOS Social Posting::Attachment2
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 278 pt
                              • Left: 98 pt
                              • Bottom: 403 pt
                              • Right: 316 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: iOS Social Posting::Attachment3
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 405 pt
                              • Left: 98 pt
                              • Bottom: 530 pt
                              • Right: 316 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: iOS Social Posting::Result
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 128 pt
                              • Left: 98 pt
                              • Bottom: 149 pt
                              • Right: 316 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

                              Merge Fields

                              Field PropertiesCoordinatesFieldsQuick Find
                                Text:
                              • Installed Plug-ins
                              • Top: 548 pt
                              • Left: 6 pt
                              • Bottom: 644 pt
                              • Right: 314 pt
                              • Anchoring: Left and Right, Top
                                No

                                Buttons

                                Button PropertiesCoordinatesScript/Script Step
                                  Type:
                                • Text: New Record
                                • Top: 10 pt
                                • Left: 18 pt
                                • Bottom: 39 pt
                                • Right: 126 pt
                                • Anchoring: Left, Top
                                New Record/Request

                                Button PropertiesCoordinatesScript/Script Step
                                  Type:
                                • Text: Send
                                • Top: 10 pt
                                • Left: 194 pt
                                • Bottom: 39 pt
                                • Right: 302 pt
                                • Anchoring: Left, Top
                                Perform Script [ “Send” ]

                                Scripts:


                                Value Lists

                                Value List NameSourceValuesOn Layouts
                                ServicesCustom
                                • Facebook, Twitter, SinaWeibo, TencentWeibo

                                Script Hierarchy

                                Send
                                Sent

                                Next Script: [Sent]
                                Script NameSend
                                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( "SocialComposer.IsAvailableForServiceType"; iOS Social Posting::Service ) ]
                                  • If [ $r ≠ 1 ]
                                  • Show Custom Dialog [ Title: "Can't send message."; Message: "This iOS device is not configured to post on " & iOS Social Posting::Service & "."; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                  • Exit Script [ Result: "failed" ]
                                  • End If
                                  • Set Variable [ $r; Value:MBS( "SocialComposer.New"; iOS Social Posting::Service ) ]
                                  • Set Variable [ $r; Value:MBS( "SocialComposer.SetScript"; Get(FileName); "Sent") ]
                                  • If [ Length ( iOS Social Posting::Text ) > 0 ]
                                  • Set Variable [ $r; Value:MBS( "SocialComposer.SetInitialText"; iOS Social Posting::Text) ]
                                  • End If
                                  • If [ Length ( iOS Social Posting::URL ) > 0 ]
                                  • Set Variable [ $r; Value:MBS( "SocialComposer.AddURL"; iOS Social Posting::URL) ]
                                  • End If
                                  • If [ not IsEmpty ( iOS Social Posting::Attachment1 ) ]
                                  • Set Variable [ $r; Value:MBS( "SocialComposer.AddImageContainer"; iOS Social Posting::Attachment1) ]
                                  • End If
                                  • If [ not IsEmpty ( iOS Social Posting::Attachment2 ) ]
                                  • Set Variable [ $r; Value:MBS( "SocialComposer.AddImageContainer"; iOS Social Posting::Attachment2) ]
                                  • End If
                                  • If [ not IsEmpty ( iOS Social Posting::Attachment3 ) ]
                                  • Set Variable [ $r; Value:MBS( "SocialComposer.AddImageContainer"; iOS Social Posting::Attachment3) ]
                                  • End If
                                  • Set Variable [ $r; Value:MBS( "SocialComposer.Present") ]
                                  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: [Send]
                                          Script NameSent
                                          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 [ $result; Value:MBS( "SocialComposer.Result" ) ]
                                              • Set Field [ iOS Social Posting::Result; $result ]
                                              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: iOS Social Posting

                                                      Used functions:




                                                      Links
                                                      MBS Xojo Chart Plugins