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

MBS FileMaker Plugin Example Databases

Write Document

All examples are included with download of MBS FileMaker Plugin.

Write Document.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts1
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
Test
1 field defined, 1 record
Test

Fields

Table Name: Test - 1 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

      Layout Objects: Test

      Regular Fields

      Field Name: Test::Text
      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
      • Top: 123 pt
      • Left: 106 pt
      • Bottom: 457 pt
      • Right: 370 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: Save as Word File
      • Top: 132 pt
      • Left: 404 pt
      • Bottom: 165 pt
      • Right: 580 pt
      • Anchoring: Left, Top
      Perform Script [ “Save” ]

      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: 127 pt
      • Left: 606 pt
      • Bottom: 457 pt
      • Right: 877 pt
      • Anchoring: Left, Top
      "about:blank"

      Script Hierarchy

      Save

      Script NameSave
      Run script with full access privilegesOff
      Include In MenuYes
      Layouts that use this script
      Scripts that use this script
        Script Definition
        Script Steps
        • If [ 1 ]
        • #via ReadHTML
        • Set Variable [ $text; Value:GetAsCSS(Test::Text) ]
        • Set Variable [ $r; Value:MBS( "RichText.ReadHTML"; $text; "utf8") ]
        • Else
        • #via Webviewer
        • Set Variable [ $text; Value:GetAsCSS(Test::Text) ]
        • Set Variable [ $r; Value:MBS( "WebView.LoadHTML"; "web"; $text ) ]
        • Pause/Resume Script [ Duration (seconds): ,3 ]
        • Set Variable [ $r; Value:MBS( "RichText.ReadWebviewer"; "web" ) ]
        • End If
        • Set Variable [ $folder; Value:MBS( "Folders.UserDesktop" ) ]
        • #Word, new format
        • Set Variable [ $path1; Value:$folder & "/test.docx" ]
        • Set Variable [ $r; Value:MBS( "RichText.WriteFile"; $path1; "docx" ) ]
        • #Word, old format
        • Set Variable [ $path2; Value:$folder & "/test.doc" ]
        • Set Variable [ $r; Value:MBS( "RichText.WriteFile"; $path2; "doc" ) ]
        • #RTF
        • Set Variable [ $path3; Value:$folder & "/test.rtf" ]
        • Set Variable [ $r; Value:MBS( "RichText.WriteFile"; $path3; "rtf" ) ]
        • #cleanup
        • Set Variable [ $r; Value:MBS( "RichText.Release") ]
        • Set Variable [ $r; Value:MBS( "Files.LaunchFile"; $path1) ]
        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: Write Document

                Used functions: