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

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
Tables 1
Relationships 0
Layouts 2
Scripts 7
Value Lists 0
Custom Functions 0
Custom Menus 33
File Options
Default custom menu set [Standard FileMaker Menus]
When opening file
Minimum allowed version 12.0
Login using Account Name; Account= Admin
Allow user to save password On
Require iOS passcode Off
Show Sign-in fields Off
Switch to layout Off
Hide all toolbars Off
Script triggers
OnFirstWindowOpen Off
OnLastWindowClose Off
OnWindowOpen Off
OnWindowClose Off
OnFileAVPlayerChange Off
OnWindowTransaction Off
Thumbnail Settings
Generate Thumbnails On; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
test
4 fields defined, 2 records
test

Fields

Table Name: test - 4 Fields
Field Name Type Options Comments On Layouts In Relationships In Scripts In Value Lists
FormattedText Normal, Text Auto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      RTFText Normal, Text Auto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          HTMLText Normal, Text Auto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              Text Normal, Text Auto-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 Properties Coordinates Field Format Field Behavior Quick Find
                  • Top: 5 pt
                  • Left: 138 pt
                  • Bottom: 85 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 Properties Coordinates Field Format Field Behavior Quick Find
                  • Top: 89 pt
                  • Left: 138 pt
                  • Bottom: 229 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 Properties Coordinates Field Format Field Behavior Quick Find
                  • Top: 257 pt
                  • Left: 138 pt
                  • Bottom: 421 pt
                  • Right: 385 pt
                  • Anchoring: Left, Top and Bottom
                  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::Text
                  Field Properties Coordinates Field Format Field Behavior Quick Find
                  • Top: 6 pt
                  • Left: 558 pt
                  • Bottom: 239 pt
                  • Right: 853 pt
                  • Anchoring: Left and Right, 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 Properties Coordinates Script/Script Step
                    Type:
                  • Text: Create RTF
                  • Top: 6 pt
                  • Left: 402 pt
                  • Bottom: 31 pt
                  • Right: 518 pt
                  • Anchoring: Left, Top
                  Perform Script [ “Create RTF” ]

                  Scripts:


                  Button Properties Coordinates Script/Script Step
                    Type:
                  • Text: Parse RTF
                  • Top: 41 pt
                  • Left: 402 pt
                  • Bottom: 66 pt
                  • Right: 518 pt
                  • Anchoring: Left, Top
                  Perform Script [ “Parse RTF” ]

                  Scripts:


                  Button Properties Coordinates Script/Script Step
                    Type:
                  • Text: Write to Desktop
                  • Top: 76 pt
                  • Left: 402 pt
                  • Bottom: 101 pt
                  • Right: 518 pt
                  • Anchoring: Left, Top
                  Perform Script [ “Write to Desktop” ]

                  Scripts:


                  Button Properties Coordinates Script/Script Step
                    Type:
                  • Text: Serialize
                  • Top: 111 pt
                  • Left: 402 pt
                  • Bottom: 136 pt
                  • Right: 518 pt
                  • Anchoring: Left, Top
                  Perform Script [ “Serialize” ]

                  Scripts:


                  Button Properties Coordinates Script/Script Step
                    Type:
                  • Text: Deserialize
                  • Top: 146 pt
                  • Left: 402 pt
                  • Bottom: 171 pt
                  • Right: 518 pt
                  • Anchoring: Left, Top
                  Perform Script [ “Deserialize” ]

                  Scripts:


                  Button Properties Coordinates Script/Script Step
                    Type:
                  • Text: To HTML
                  • Top: 181 pt
                  • Left: 402 pt
                  • Bottom: 206 pt
                  • Right: 518 pt
                  • Anchoring: Left, Top
                  Perform Script [ “Make HTML” ]

                  Scripts:


                  Web Viewer Controls

                  Web Viewer Control Properties Coordinates Web Address
                    Additional Properties:
                  • Allow interaction with web viewer content
                  • Display progress bar
                  • Display status messages
                  • Automatically encode URL
                  • Top: 257 pt
                  • Left: 558 pt
                  • Bottom: 420 pt
                  • Right: 859 pt
                  • Anchoring: Left and Right, Top and Bottom
                  "data:text/html;charset=utf-8;base64," & Base64Encode( test::HTMLText)

                  Script Hierarchy

                  Parse RTF
                  Create RTF
                  Write to Desktop
                  Clear
                  Make HTML
                  Deserialize
                  Serialize

                  Next Script: [Create RTF]
                  Script Name Parse RTF
                  Run script with full access privileges Off
                  Siri Shortcut Visible Off
                  Include In Menu No
                  Layouts that use this script
                  Scripts that use this script
                    Script Definition
                    Script Steps
                    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: [Parse RTF] Next Script: [Write to Desktop]
                            Script Name Create RTF
                            Run script with full access privileges Off
                            Siri Shortcut Visible Off
                            Include In Menu No
                            Layouts that use this script
                            Scripts that use this script
                              Script Definition
                              Script Steps
                              • Set Field [ test::RTFText; MBS("Text.TextToRTF"; test::FormattedText) ]
                              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: [Create RTF] Next Script: [Clear]
                                      Script Name Write to Desktop
                                      Run script with full access privileges Off
                                      Siri Shortcut Visible Off
                                      Include In Menu No
                                      Layouts that use this script
                                      Scripts that use this script
                                        Script Definition
                                        Script Steps
                                        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: [Write to Desktop] Next Script: [Make HTML]
                                                Script Name Clear
                                                Run script with full access privileges Off
                                                Siri Shortcut Visible Off
                                                Include In Menu Yes
                                                Layouts that use this script
                                                  Scripts that use this script
                                                    Script Definition
                                                    Script Steps
                                                    • Set Field [ test::Text; "" ]
                                                    • Set Field [ test::HTMLText; "" ]
                                                    • Set Field [ test::RTFText; "" ]
                                                    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] Next Script: [Deserialize]
                                                            Script Name Make HTML
                                                            Run script with full access privileges Off
                                                            Siri Shortcut Visible Off
                                                            Include In Menu No
                                                            Layouts that use this script
                                                            Scripts that use this script
                                                              Script Definition
                                                              Script Steps
                                                              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: [Make HTML] Next Script: [Serialize]
                                                                      Script Name Deserialize
                                                                      Run script with full access privileges Off
                                                                      Siri Shortcut Visible Off
                                                                      Include In Menu No
                                                                      Layouts that use this script
                                                                      Scripts that use this script
                                                                        Script Definition
                                                                        Script Steps
                                                                        • Set Field [ test::RTFText; MBS("Text.DeSerialize"; test::RTFText) ]
                                                                        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: [Deserialize]
                                                                                Script Name Serialize
                                                                                Run script with full access privileges Off
                                                                                Siri Shortcut Visible Off
                                                                                Include In Menu No
                                                                                Layouts that use this script
                                                                                Scripts that use this script
                                                                                  Script Definition
                                                                                  Script Steps
                                                                                  • Set Field [ test::RTFText; MBS("Text.Serialize"; test::FormattedText) ]
                                                                                  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: Text to RTF or HTML

                                                                                          Used functions: