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

MBS FileMaker Plugin Example Databases

RTF to formatted text

All examples are included with download of MBS FileMaker Plugin.

RTF to formatted text.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts1
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
RTF Test
3 fields defined, 1 record
RTF Test

Fields

Table Name: RTF Test - 3 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
RTF InputNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      Text OutputNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          HTML OutputNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German

              Layout Objects: RTF Test

              Regular Fields

              Field Name: RTF Test::RTF Input
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 50 pt
              • Left: 114 pt
              • Bottom: 288 pt
              • Right: 367 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: RTF Test::Text Output
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 50 pt
              • Left: 457 pt
              • Bottom: 288 pt
              • Right: 710 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: RTF Test::HTML Output
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 51 pt
              • Left: 810 pt
              • Bottom: 288 pt
              • Right: 1063 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

              Script Hierarchy

              Convert

              Script NameConvert
              Run script with full access privilegesOff
              Siri Shortcut VisibleOff
              Include In MenuYes
              Layouts that use this script
                Scripts that use this script
                  Script Definition
                  Script Steps
                  • If [ MBS("IsMacOS") or MBS("IsiOS") ]
                  • #using RichText
                  • Set Variable [ $r; Value:MBS("RichText.ReadText"; RTF Test::RTF Input) ]
                  • Set Field [ RTF Test::Text Output; MBS("RichText.FormattedText") ]
                  • Set Field [ RTF Test::HTML Output; MBS("RichText.HTMLText") ]
                  • Set Variable [ $r; Value:MBS("RichText.Release") ]
                  • Else
                  • #alternative way for Windows and Linux
                  • Set Field [ RTF Test::Text Output; MBS("Text.RTFToText"; RTF Test::RTF Input) ]
                  • Set Field [ RTF Test::HTML Output; GetAsCSS ( RTF Test::Text Output ) ]
                  • 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

                          Download example: RTF to formatted text

                          Used functions: