Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
MessageComposer.Present
Presents the message composer view.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| MessageComposer | 7.3 | No | No | No | No | Yes |
Parameters
none
Result
Returns OK or error.
Description
Presents the message composer view.This will show the user interface and start the process.
Your script may call this in a script and than wait for the script trigger.
Examples
Send a message with options:
Set Variable [ $r ; Value: MBS( "MessageComposer.CanSendText" ) ]
If [ $r ≠ 1 ]
Show Custom Dialog [ "Can't send emails." ; "This iOS device is not configured to send text messages." ]
Exit Script [ Text Result: "failed" ]
End If
Set Variable [ $r ; Value: MBS( "MessageComposer.New" ) ]
If [ Length ( PlaceHolder::Subject ) > 0 ]
Set Variable [ $r ; Value: MBS( "MessageComposer.SetSubject"; PlaceHolder::Subject ) ]
End If
Set Variable [ $r ; Value: MBS( "MessageComposer.SetScript"; Get(FileName); "Sent") ]
If [ Length ( PlaceHolder::Body ) > 0 ]
Set Variable [ $r ; Value: MBS( "MessageComposer.SetMessageBody"; PlaceHolder::Body) ]
End If
If [ Length ( PlaceHolder::Recipients ) > 0 ]
Set Variable [ $r ; Value: MBS( "MessageComposer.SetRecipients"; PlaceHolder::Recipients) ]
End If
Perform Script [ “AddAttachment” ; Parameter: GetFieldName ( PlaceHolder::Attachment1 ) ]
Perform Script [ “AddAttachment” ; Parameter: GetFieldName ( PlaceHolder::Attachment2 ) ]
Perform Script [ “AddAttachment” ; Parameter: GetFieldName ( PlaceHolder::Attachment3 ) ]
Set Variable [ $r ; Value: MBS( "MessageComposer.Present") ]
See also
- MailComposer.Present
- MessageComposer.CanSendText
- MessageComposer.IsPresented
- MessageComposer.New
- MessageComposer.Result
- MessageComposer.SetMessageBody
- MessageComposer.SetRecipients
- MessageComposer.SetScript
- MessageComposer.SetSubject
- SocialComposer.Present
Example Databases
Created 10th June 2017, last changed 10th June 2017
MessageComposer.New - MessageComposer.Result
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins