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

MBS FileMaker Plugin Example Databases

MarkDown

All examples are included with download of MBS FileMaker Plugin.

MarkDown.fmp12

Overview
Tables 1
Relationships 0
Layouts 1
Scripts 4
Value Lists 0
Custom Functions 0
Custom Menus 33
File Options
Default custom menu set [Standard FileMaker Menus]
Default theme Minimalistisch
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
Comments
Occurrences in Relationship Graph
MarkDown
3 fields defined, 2 records
MarkDown

Fields

Table Name: MarkDown - 3 Fields
Field Name Type Options Comments On Layouts In Relationships In Scripts In Value Lists
InputMarkDown Normal, Text Auto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      HTML Normal, Text Auto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          StyledText 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: MarkDown

              Regular Fields

              Field Name: MarkDown::InputMarkDown
              Field Properties Coordinates Field Format Field Behavior Quick Find
              • Top: 24 pt
              • Left: 138 pt
              • Bottom: 248 pt
              • Right: 403 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: MarkDown::HTML
              Field Properties Coordinates Field Format Field Behavior Quick Find
              • Top: 24 pt
              • Left: 450 pt
              • Bottom: 248 pt
              • Right: 703 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: MarkDown::StyledText
              Field Properties Coordinates Field Format Field Behavior Quick Find
              • Top: 24 pt
              • Left: 787 pt
              • Bottom: 248 pt
              • Right: 1040 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: Process MarkDown
              • Top: 61 pt
              • Left: 13 pt
              • Bottom: 104 pt
              • Right: 127 pt
              • Anchoring: Left, Top
              Perform Script [ “MarkDown to HTML to Styled Text” ]

              Scripts:


              Web Viewer Controls

              Web Viewer Control Properties Coordinates Web Address
                Object Name:
              • web
                Additional Properties:
              • Allow interaction with web viewer content
              • Display progress bar
              • Display status messages
              • Automatically encode URL
              • Top: 258 pt
              • Left: 13 pt
              • Bottom: 771 pt
              • Right: 1040 pt
              • Anchoring: Left and Right, Top and Bottom
              "about:blank"

              Script Hierarchy

              MarkDown to HTML to Styled Text
              HTML to styled text
              Clear
              Colorize

              Next Script: [HTML to styled text]
              Script Name MarkDown to HTML to Styled Text
              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 Variable [ $id; Value:MBS("MarkDown.Create"; MarkDown::InputMarkDown) ]
                • If [ MBS("IsError") ]
                • Show Custom Dialog [ Message: $id; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                • Exit Script [ ]
                • End If
                • If [ False ]
                • #old way
                • Set Variable [ $html; Value:MBS("MarkDown.HTML"; $id) ]
                • Set Variable [ $css; Value:MBS("MarkDown.CSS"; $id) ]
                • Set Variable [ $htmldocument; Value:"<html>" & ¶ & "<head>" & ¶ & $CSS & ¶ & "</head>" & ¶ & "<body>" & ¶ & $html & ¶ & "</body>" & ¶ & "</html>" ]
                • Else [ ]
                • #new vay
                • Set Variable [ $htmldocument; Value:MBS("MarkDown.HTMLDocument"; $id) ]
                • End If
                • Set Field [ MarkDown::HTML; $htmldocument ]
                • #and get styled text
                • Set Variable [ $StyledText; Value:MBS("MarkDown.StyledText"; $id) ]
                • Set Field [ MarkDown::StyledText; $StyledText ]
                • Set Variable [ $r; Value:MBS("MarkDown.Release"; $id) ]
                • Set Variable [ $r; Value:MBS( "WebView.LoadHTML"; "web"; MarkDown::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: [MarkDown to HTML to Styled Text] Next Script: [Clear]
                        Script Name HTML to styled text
                        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
                            • #and get styled text
                            • Set Variable [ $StyledText; Value:MBS("Text.HTMLtoStyledText"; MarkDown::HTML) ]
                            • Set Field [ MarkDown::StyledText; $StyledText ]
                            • Set Variable [ $r; Value:MBS( "WebView.LoadHTML"; "web"; MarkDown::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: [HTML to styled text] Next Script: [Colorize]
                                    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 [ MarkDown::StyledText; Replace with calculation: "" ] [ No dialog ]
                                        • Replace Field Contents [ MarkDown::HTML; 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]
                                                Script Name Colorize
                                                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 Variable [ $StyledText; Value:MBS("MarkDown.Colorize"; MarkDown::InputMarkDown) ]
                                                    • If [ MBS("IsError") ]
                                                    • #old plugin maybe?
                                                    • Else [ ]
                                                    • Set Field [ MarkDown::InputMarkDown; $StyledText ]
                                                    • 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: MarkDown

                                                            Used functions: