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 WebViewer

All examples are included with download of MBS FileMaker Plugin.

Text To WebViewer.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts3
Value Lists0
Custom Functions0
Custom Menus0
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
Text To WebViewer
2 fields defined, 1 record
Text To WebViewer

Fields

Table Name: Text To WebViewer - 2 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
TextNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      HTMLNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German

          Layout Objects: Text To WebViewer

          Regular Fields

          Field Name: Text To WebViewer::Text
          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
          • Top: 74 pt
          • Left: 11 pt
          • Bottom: 517 pt
          • Right: 313 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: Text To WebViewer::HTML
          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
          • Top: 74 pt
          • Left: 316 pt
          • Bottom: 517 pt
          • Right: 618 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: Text to Webviewer Simple
          • Top: 9 pt
          • Left: 34 pt
          • Bottom: 43 pt
          • Right: 246 pt
          • Anchoring: Left, Top
          Perform Script [ “Text to Webviewer” ]

          Scripts:


          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Text to Webviewer Better
          • Top: 9 pt
          • Left: 272 pt
          • Bottom: 43 pt
          • Right: 484 pt
          • Anchoring: Left, Top
          Perform Script [ “Text to Webviewer better” ]

          Scripts:


          Web Viewer Controls

          Web Viewer Control PropertiesCoordinatesWeb Address
            Object Name:
          • web
            Additional Properties:
          • Allow interaction with web viewer content
          • Display progress bar
          • Display status messages
          • Automatically encode URL
          • Top: 74 pt
          • Left: 623 pt
          • Bottom: 517 pt
          • Right: 999 pt
          • Anchoring: Left, Top
          "about:blank"

          Script Hierarchy

          Text to Webviewer
          Text to Webviewer better
          Load HTML

          Next Script: [Text to Webviewer better]
          Script NameText to Webviewer
          Run script with full access privilegesOff
          Include In MenuYes
          Layouts that use this script
          Scripts that use this script
            Script Definition
            Script Steps
            • Set Web Viewer [ Object Name: "web"; URL: "data:text/plain;charset=utf-8;base64," & Base64Encode ( Text To WebViewer::Text ) ]
            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: [Text to Webviewer]Next Script: [Load HTML]
                    Script NameText to Webviewer better
                    Run script with full access privilegesOff
                    Include In MenuYes
                    Layouts that use this script
                    Scripts that use this script
                      Script Definition
                      Script Steps
                      • Set Variable [ $text; Value:Text To WebViewer::Text ]
                      • Set Variable [ $html; Value:MBS( "Text.EncodeToHTML"; $text ) ]
                      • Set Variable [ $html; Value:MBS( "RegEx.ReplaceAll"; $html; "(http|https)://([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?"; "<a href=\"\0\" target=\"_blank\">\0</a>"; "Caseless¶greedy") ]
                      • Set Variable [ $html; Value:MBS( "Text.ReplaceNewline"; $html; 4 ) ]
                      • Set Variable [ $html; Value:"<html><body><p>" & $html & "</p></body></html>" ]
                      • Set Field [ Text To WebViewer::HTML; $html ]
                      • Set Web Viewer [ Object Name: "web"; URL: "data:text/html;charset=utf-8;base64," & Base64Encode ( $html ) ]
                      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: [Text to Webviewer better]
                              Script NameLoad HTML
                              Run script with full access privilegesOff
                              Include In MenuYes
                              Layouts that use this script
                                Scripts that use this script
                                  Script Definition
                                  Script Steps
                                  • Set Web Viewer [ Object Name: "web"; URL: "data:text/html;charset=utf-8;base64," & Base64Encode ( Text To WebViewer::HTML ) ]
                                  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 WebViewer

                                          Used functions: