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

MBS FileMaker Plugin Example Databases

iOS Message Sending

All examples are included with download of MBS FileMaker Plugin.

iOS Message Sending.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts3
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
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
iOS Message Sending
7 fields defined, 1 record
iOS Message Sending

Fields

Table Name: iOS Message Sending - 7 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
SubjectNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: English
      BodyNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: English
          RecipientsNormal, 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 Message Sending

                              Regular Fields

                              Field Name: iOS Message Sending::Subject
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 59 pt
                              • Left: 98 pt
                              • Bottom: 80 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 Message Sending::Body
                              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 Message Sending::Recipients
                              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 Message Sending::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 Message Sending::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 Message Sending::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 Message Sending::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: 19 pt
                                • Bottom: 39 pt
                                • Right: 104 pt
                                • Anchoring: Left, Top
                                New Record/Request

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

                                Scripts:


                                Button PropertiesCoordinatesScript/Script Step
                                  Type:
                                • Text: Examples List
                                • Top: 10 pt
                                • Left: 192 pt
                                • Bottom: 40 pt
                                • Right: 316 pt
                                • Anchoring: Right, Top
                                Select Window [ Name: "iOS Examples" ]

                                Script Hierarchy

                                Send
                                AddAttachment
                                Sent

                                Next Script: [AddAttachment]
                                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( "MessageComposer.CanSendText" ) ]
                                  • If [ $r ≠ 1 ]
                                  • Show Custom Dialog [ Title: "Can't send emails."; Message: "This iOS device is not configured to send text messages."; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                  • Exit Script [ Result: "failed" ]
                                  • End If
                                  • Set Variable [ $r; Value:MBS( "MessageComposer.New" ) ]
                                  • If [ Length ( iOS Message Sending::Subject ) > 0 ]
                                  • Set Variable [ $r; Value:MBS( "MessageComposer.SetSubject"; iOS Message Sending::Subject ) ]
                                  • End If
                                  • Set Variable [ $r; Value:MBS( "MessageComposer.SetScript"; Get(FileName); "Sent") ]
                                  • If [ Length ( iOS Message Sending::Body ) > 0 ]
                                  • Set Variable [ $r; Value:MBS( "MessageComposer.SetMessageBody"; iOS Message Sending::Body) ]
                                  • End If
                                  • If [ Length ( iOS Message Sending::Recipients ) > 0 ]
                                  • Set Variable [ $r; Value:MBS( "MessageComposer.SetRecipients"; iOS Message Sending::Recipients) ]
                                  • End If
                                  • Perform Script [ “AddAttachment”; Parameter: GetFieldName ( iOS Message Sending::Attachment1 ) ]
                                  • Perform Script [ “AddAttachment”; Parameter: GetFieldName ( iOS Message Sending::Attachment2 ) ]
                                  • Perform Script [ “AddAttachment”; Parameter: GetFieldName ( iOS Message Sending::Attachment3 ) ]
                                  • Set Variable [ $r; Value:MBS( "MessageComposer.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]Next Script: [Sent]
                                        Script NameAddAttachment
                                        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 [ $FieldName; Value:Get(ScriptParameter) ]
                                          • Set Variable [ $Container; Value:GetField ( $FieldName) ]
                                          • If [ IsEmpty ( $container ) = 0 ]
                                          • Set Variable [ $path; Value:GetAsText ( $Container ) ]
                                          • Set Variable [ $name; Value:MBS( "Path.LastPathComponent"; $path) ]
                                          • Set Variable [ $extension; Value:MBS( "Files.FileExtension"; $name ) ]
                                          • Set Variable [ $mimeType; Value:MBS( "Text.FileExtensionToMimeType"; $extension ) ]
                                          • Set Variable [ $r; Value:MBS( "MessageComposer.AddAttachmentContainer"; $container; $name; $mimeType) ]
                                          • 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: [AddAttachment]
                                                        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( "MessageComposer.Result" ) ]
                                                            • Set Field [ iOS Message Sending::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 Message Sending

                                                                    Used functions: