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

MBS FileMaker Plugin Example Databases

HTML to formatted text

All examples are included with download of MBS FileMaker Plugin.

HTML to formatted text.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
RTF Test
2 fields defined, 1 record
RTF Test

Fields

Table Name: RTF Test - 2 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
HTML 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

          Layout Objects: RTF Test

          Regular Fields

          Field Name: RTF Test::HTML 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: 51 pt
          • Left: 473 pt
          • Bottom: 289 pt
          • Right: 726 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

          Buttons

          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Convert to Styled Text on macOS
          • Top: 7 pt
          • Left: 114 pt
          • Bottom: 43 pt
          • Right: 367 pt
          • Anchoring: Left, Top
          Perform Script [ “Convert to Styled text” ]

          Scripts:


          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Convert to Plain Text
          • Top: 7 pt
          • Left: 473 pt
          • Bottom: 43 pt
          • Right: 726 pt
          • Anchoring: Left, Top
          Perform Script [ “Convert to plain text” ]

          Scripts:


          Web Viewer Controls

          Web Viewer Control PropertiesCoordinatesWeb Address
            Additional Properties:
          • Allow interaction with web viewer content
          • Automatically encode URL
          • Top: 51 pt
          • Left: 745 pt
          • Bottom: 288 pt
          • Right: 1018 pt
          • Anchoring: Left and Right, Top
          "data:text/html;charset=utf-8," & RTF Test::HTML Input

          Script Hierarchy

          Convert to plain text
          Convert to Styled text
          Clear

          Next Script: [Convert to Styled text]
          Script NameConvert to plain text
          Run script with full access privilegesOff
          Include In MenuYes
          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: [Convert to plain text]Next Script: [Clear]
                    Script NameConvert to Styled text
                    Run script with full access privilegesOff
                    Include In MenuYes
                    Layouts that use this script
                    Scripts that use this script
                      Script Definition
                      Script Steps
                      • If [ MBS("IsWindows") or MBS("IsLinux") ]
                      • Show Custom Dialog [ Title: "Mac only"; Message: "This function is only for macOS."; Default Button: “OK”, Commit: “Yes” ]
                      • Else
                      • Set Variable [ $r; Value:MBS("RichText.ReadHTML"; RTF Test::HTML Input) ]
                      • Set Field [ RTF Test::Text Output; MBS("RichText.FormattedText") ]
                      • Set Variable [ $r; Value:MBS("RichText.Release") ]
                      • 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: [Convert to Styled text]
                              Script NameClear
                              Run script with full access privilegesOff
                              Include In MenuYes
                              Layouts that use this script
                                Scripts that use this script
                                  Script Definition
                                  Script Steps
                                  • Set Field [ RTF Test::Text Output; "" ]
                                  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: HTML to formatted text

                                          Used functions: