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
Tables1
Relationships0
Layouts1
Scripts2
Value Lists0
Custom Functions0
Custom Menus33
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
MarkDown
2 fields defined, 2 records
MarkDown

Fields

Table Name: MarkDown - 2 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
InputMarkDownNormal, 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: MarkDown

          Regular Fields

          Field Name: MarkDown::InputMarkDown
          Field PropertiesCoordinatesField FormatField BehaviorQuick 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 PropertiesCoordinatesField FormatField BehaviorQuick 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

          Buttons

          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Process MarkDown
          • Top: 61 pt
          • Left: 13 pt
          • Bottom: 104 pt
          • Right: 127 pt
          • Anchoring: Left, Top
          Perform Script [ “Process” ]

          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: 258 pt
          • Left: 13 pt
          • Bottom: 751 pt
          • Right: 758 pt
          • Anchoring: Left and Right, Top and Bottom
          "about:blank"

          Script Hierarchy

          Process
          Clear

          Next Script: [Clear]
          Script NameProcess
          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 [ $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
            • Set Variable [ $html; Value:MBS("MarkDown.HTML"; $id) ]
            • Set Variable [ $css; Value:MBS("MarkDown.CSS"; $id) ]
            • Set Variable [ $r; Value:MBS("MarkDown.Release"; $id) ]
            • Set Variable [ $htmldocument; Value:"<html>" & ¶ & "<head>" & ¶ & $CSS & ¶ & "</head>" & ¶ & "<body>" & ¶ & $html & ¶ & "</body>" & ¶ & "</html>" ]
            • Set Field [ MarkDown::HTML; $htmldocument ]
            • // Set Variable [ $URL; Value:"data:html/text;charset=utf-8," & MBS( "Text.EncodeToURL"; $htmldocument; "UTF-8" ) ]
            • // Set Web Viewer [ Object Name: "web"; URL: $URL ]
            • 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: [Process]
                    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 [ 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

                                Download example: MarkDown

                                Used functions: