MBS FileMaker Plugin Example Databases

Text to RTF or HTML

All examples are included with download of MBS FileMaker Plugin.

Text to RTF or HTML.fmp12

Overview
Tables1
Relationships0
Layouts2
Scripts0
Value Lists0
Custom Functions0
Custom Menus33
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
test
3 fields defined, 1 record
test

Fields

Table Name: test - 3 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
FormattedTextNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
        RTFTextNormal, TextAuto-Enter:
        • Allow editing
        Validation:
        • Only during data entry
        Storage:
        • Repetitions: 1
        • Indexing: None
        • Automatically create indexes as needed
        • Index Language: German
              HTMLTextNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German

                    Layout Objects: Ohne Titel

                    Layout Objects: test

                    Regular Fields

                    Field Name: test::FormattedText
                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                    • Top: 24 pt
                    • Left: 138 pt
                    • Bottom: 104 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: System Default
                    • Go to next field using: Tab key
                    Yes

                    Field Name: test::RTFText
                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                    • Top: 108 pt
                    • Left: 138 pt
                    • Bottom: 248 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: System Default
                    • Go to next field using: Tab key
                    Yes

                    Field Name: test::HTMLText
                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                    • Top: 276 pt
                    • Left: 138 pt
                    • Bottom: 440 pt
                    • Right: 385 pt
                    • Anchoring: Left, Top
                    Field Format:
                    • Edit Box
                    Field Behavior:
                    • Allow field to be entered: In Find mode, In Browse mode
                    • Touch keyboard type: System Default
                    • Go to next field using: Tab key
                    Yes

                    Group Buttons

                    Button PropertiesCoordinatesScript/Script Step
                      Type:
                    • Text: To RTF
                      Additional Properties:
                    • Change to hand cursor over button
                    • Rectangular
                    • Top: 102 pt
                    • Left: 414 pt
                    • Bottom: 127 pt
                    • Right: 493 pt
                    • Anchoring: Left, Top
                    Set Field [ test::RTFText; MBS("Text.TextToRTF"; test::FormattedText) ]

                    Fields:


                    Button PropertiesCoordinatesScript/Script Step
                      Type:
                    • Text: Write to disk
                      Additional Properties:
                    • Change to hand cursor over button
                    • Rectangular
                    • Top: 138 pt
                    • Left: 414 pt
                    • Bottom: 163 pt
                    • Right: 493 pt
                    • Anchoring: Left, Top
                    Show Custom Dialog [ Title: "Write to disk"; Message: MBS("Text.WriteTextFile"; MBS("Text.TextToRTF"; test::FormattedText); MBS( "Folders.UserDesktop" ) & "test.rtf"; "ansi"); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]

                    Fields:


                    Button PropertiesCoordinatesScript/Script Step
                      Type:
                    • Text: To HTML
                      Additional Properties:
                    • Change to hand cursor over button
                    • Rectangular
                    • Top: 288 pt
                    • Left: 414 pt
                    • Bottom: 313 pt
                    • Right: 493 pt
                    • Anchoring: Left, Top
                    Set Field [ test::HTMLText; MBS("Text.TextToHTML"; test::FormattedText) ]

                    Fields:


                    Button PropertiesCoordinatesScript/Script Step
                      Type:
                    • Text: Serialize
                      Additional Properties:
                    • Change to hand cursor over button
                    • Rectangular
                    • Top: 186 pt
                    • Left: 414 pt
                    • Bottom: 211 pt
                    • Right: 493 pt
                    • Anchoring: Left, Top
                    Set Field [ test::RTFText; MBS("Text.Serialize"; test::FormattedText) ]

                    Fields:


                    Button PropertiesCoordinatesScript/Script Step
                      Type:
                    • Text: Deserialize
                      Additional Properties:
                    • Change to hand cursor over button
                    • Rectangular
                    • Top: 216 pt
                    • Left: 414 pt
                    • Bottom: 241 pt
                    • Right: 493 pt
                    • Anchoring: Left, Top
                    Set Field [ test::RTFText; MBS("Text.DeSerialize"; test::RTFText) ]

                    Fields:


                    Web Viewer Controls

                    Web Viewer Control PropertiesCoordinatesWeb Address
                      Additional Properties:
                    • Allow interaction with web viewer content
                    • Display progress bar
                    • Display status messages
                    • Automatically encode URL
                    • Top: 276 pt
                    • Left: 564 pt
                    • Bottom: 439 pt
                    • Right: 859 pt
                    • Anchoring: Left, Top
                    "data:text/html;charset=utf-8," & test::HTMLText

                    Download example: Text to RTF or HTML

                    Used functions:




                    Links
                    MBS Xojo Plugins