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

MBS FileMaker Plugin Example Databases

Text functions

All examples are included with download of MBS FileMaker Plugin.

Text functions.fmp12

Overview
Tables 1
Relationships 0
Layouts 1
Scripts 8
Value Lists 0
Custom Functions 0
Custom Menus 24
File Options
Default custom menu set [Standard FileMaker Menus]
Default theme Apex Blue
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 On
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
Comments
Occurrences in Relationship Graph
Text functions
7 fields defined, 1 record
Text functions

Fields

Table Name: Text functions - 7 Fields
Field Name Type Options Comments On Layouts In Relationships In Scripts In Value Lists
PrimaryKey Normal, Text Auto-Enter: Validation:
  • Only during data entry
  • Not empty
  • Unique
  • Strict validation
Storage:
  • Repetitions: 1
  • Indexing: Minimal
  • Automatically create indexes as needed
  • Index Language: Unicode Raw
Unique identifier of each record in this table
          CreationTimestamp Normal, Timestamp Auto-Enter:
          • Creation timestamp
          Validation:
          • Only during data entry
          • Strict data type: 4 digit year
          • Not empty
          • Strict validation
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
          Date and time each record was created
                  CreatedBy Normal, Text Auto-Enter:
                  • Creation account name
                  Validation:
                  • Only during data entry
                  • Not empty
                  • Strict validation
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                  Account name of the user who created each record
                          ModificationTimestamp Normal, Timestamp Auto-Enter:
                          • Modification timestamp
                          Validation:
                          • Only during data entry
                          • Strict data type: 4 digit year
                          • Not empty
                          • Strict validation
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                          Date and time each record was last modified
                                  ModifiedBy Normal, Text Auto-Enter:
                                  • Modification account name
                                  Validation:
                                  • Only during data entry
                                  • Not empty
                                  • Strict validation
                                  Storage:
                                  • Repetitions: 1
                                  • Indexing: None
                                  • Automatically create indexes as needed
                                  • Index Language: German
                                  Account name of the user who last modified each record
                                          Input Normal, Text Auto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                          • Indexing: None
                                          • Automatically create indexes as needed
                                          • Index Language: German
                                              Output 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: Text functions

                                                  Regular Fields

                                                  Field Name: Text functions::Input
                                                  Field Properties Coordinates Field Format Field Behavior Quick Find
                                                  • Top: 70 pt
                                                  • Left: 68 pt
                                                  • Bottom: 401 pt
                                                  • Right: 708 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 functions::Output
                                                  Field Properties Coordinates Field Format Field Behavior Quick Find
                                                  • Top: 412 pt
                                                  • Left: 68 pt
                                                  • Bottom: 743 pt
                                                  • Right: 708 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 Properties Coordinates Script/Script Step
                                                    Type:
                                                  • Text: Correct New Line
                                                    Additional Properties:
                                                  • Change to hand cursor over button
                                                  • Top: 70 pt
                                                  • Left: 721 pt
                                                  • Bottom: 109 pt
                                                  • Right: 964 pt
                                                  • Anchoring: Left, Top
                                                  Perform Script [ “Correct New Line” ]

                                                  Scripts:


                                                  Button Properties Coordinates Script/Script Step
                                                    Type:
                                                  • Text: Analyze Styles
                                                    Additional Properties:
                                                  • Change to hand cursor over button
                                                  • Top: 124 pt
                                                  • Left: 721 pt
                                                  • Bottom: 163 pt
                                                  • Right: 964 pt
                                                  • Anchoring: Left, Top
                                                  Perform Script [ “Analyze styles” ]

                                                  Scripts:


                                                  Button Properties Coordinates Script/Script Step
                                                    Type:
                                                  • Text: Remove Accents
                                                    Additional Properties:
                                                  • Change to hand cursor over button
                                                  • Top: 178 pt
                                                  • Left: 721 pt
                                                  • Bottom: 217 pt
                                                  • Right: 964 pt
                                                  • Anchoring: Left, Top
                                                  Perform Script [ “Remove Accents” ]

                                                  Scripts:


                                                  Button Properties Coordinates Script/Script Step
                                                    Type:
                                                  • Text: Encode to HTML
                                                    Additional Properties:
                                                  • Change to hand cursor over button
                                                  • Top: 232 pt
                                                  • Left: 721 pt
                                                  • Bottom: 271 pt
                                                  • Right: 964 pt
                                                  • Anchoring: Left, Top
                                                  Perform Script [ “Encode for HTML” ]

                                                  Scripts:


                                                  Button Properties Coordinates Script/Script Step
                                                    Type:
                                                  • Text: Encode to XML
                                                    Additional Properties:
                                                  • Change to hand cursor over button
                                                  • Top: 286 pt
                                                  • Left: 721 pt
                                                  • Bottom: 325 pt
                                                  • Right: 964 pt
                                                  • Anchoring: Left, Top
                                                  Perform Script [ “Encode for XML” ]

                                                  Scripts:


                                                  Button Properties Coordinates Script/Script Step
                                                    Type:
                                                  • Text: Split Characters
                                                    Additional Properties:
                                                  • Change to hand cursor over button
                                                  • Top: 394 pt
                                                  • Left: 721 pt
                                                  • Bottom: 433 pt
                                                  • Right: 964 pt
                                                  • Anchoring: Left, Top
                                                  Perform Script [ “Split Characters” ]

                                                  Scripts:


                                                  Button Properties Coordinates Script/Script Step
                                                    Type:
                                                  • Text: Encode to URL
                                                    Additional Properties:
                                                  • Change to hand cursor over button
                                                  • Top: 340 pt
                                                  • Left: 721 pt
                                                  • Bottom: 379 pt
                                                  • Right: 964 pt
                                                  • Anchoring: Left, Top
                                                  Perform Script [ “Encode for URL” ]

                                                  Scripts:


                                                  Script Hierarchy

                                                  Clear
                                                  Correct New Line
                                                  Analyze styles
                                                  Remove Accents
                                                  Encode for HTML
                                                  Encode for XML
                                                  Encode for URL
                                                  Split Characters

                                                  Next Script: [Correct New Line]
                                                  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
                                                      • Replace Field Contents [ Text functions::Output; Replace with calculation: "" ] [ No dialog ]
                                                      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: [Analyze styles]
                                                              Script Name Correct New Line
                                                              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 [ Text functions::Output; MBS("Text.ReplaceNewline"; Text functions::Input; 1) ]
                                                                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: [Correct New Line] Next Script: [Remove Accents]
                                                                        Script Name Analyze styles
                                                                        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 [ Text functions::Output; Let([ styles = MBS( "Text.Styles"; Text functions::Input ); compactStyles = MBS("JSON.Compact"; styles); coloredStyles = MBS("JSON.Colorize"; compactStyles); result = Substitute(coloredStyles; "{"; "¶{") ]; result) ]
                                                                          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: [Analyze styles] Next Script: [Encode for HTML]
                                                                                  Script Name Remove Accents
                                                                                  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
                                                                                    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: [Remove Accents] Next Script: [Encode for XML]
                                                                                            Script Name Encode for HTML
                                                                                            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 [ Text functions::Output; MBS("Text.EncodeToHTML"; Text functions::Input) ]
                                                                                              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: [Encode for HTML] Next Script: [Encode for URL]
                                                                                                      Script Name Encode for XML
                                                                                                      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 [ Text functions::Output; MBS("Text.EncodeToXML"; Text functions::Input) ]
                                                                                                        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: [Encode for XML] Next Script: [Split Characters]
                                                                                                                Script Name Encode for URL
                                                                                                                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 [ Text functions::Output; MBS("Text.EncodeToURL"; Text functions::Input) ]
                                                                                                                  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: [Encode for URL]
                                                                                                                          Script Name Split Characters
                                                                                                                          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 [ Text functions::Output; MBS("Text.Characters"; Text functions::Input) ]
                                                                                                                            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 functions

                                                                                                                                    Used functions: