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

MBS FileMaker Plugin Example Databases

Split

All examples are included with download of MBS FileMaker Plugin.

Split.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
Split
2 fields defined, 1 record
Split

Fields

Table Name: Split - 2 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
PathPDFNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Global
  • Repetitions: 1
  • Index Language: German
      DestinationFolderPathNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Global
      • Repetitions: 1
      • Index Language: German

          Layout Objects: Split

          Regular Fields

          Field Name: Split::PathPDF
          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
          • Top: 48 pt
          • Left: 138 pt
          • Bottom: 62 pt
          • Right: 391 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
          No

          Field Name: Split::DestinationFolderPath
          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
          • Top: 66 pt
          • Left: 138 pt
          • Bottom: 80 pt
          • Right: 391 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
          No

          Group Buttons

          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Split PDF
            Additional Properties:
          • Change to hand cursor over button
          • Rectangular
          • Top: 48 pt
          • Left: 426 pt
          • Bottom: 73 pt
          • Right: 547 pt
          • Anchoring: Left, Top
          Perform Script [ “Run” ]

          Scripts:


          Script Hierarchy

          Run
          Run 100 Times

          Next Script: [Run 100 Times]
          Script NameRun
          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 [ $param; Value:Get(ScriptParameter) ]
          • Set Variable [ $ref; Value:MBS( "PDFKit.OpenPath"; Split::PathPDF ) ]
          • If [ GetAsNumber($ref) = 0 ]
          • Show Custom Dialog [ Title: "Error"; Message: $ref; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
          • Exit Script [ ]
          • End If
          • Set Variable [ $count; Value:MBS( "PDFKit.GetPDFPageCount"; $ref ) ]
          • Set Variable [ $page; Value:0 ]
          • Loop
          • Set Variable [ $PageRef; Value:MBS( "PDFKit.GetPDFPagePDFRef"; $ref; $page ) ]
          • Set Variable [ $page; Value:$page + 1 ]
          • Set Variable [ $r; Value:MBS( "PDFKit.WriteToPath"; $PageRef; Split::DestinationFolderPath & "page " & $param & $page & ".pdf" ) ]
          • Set Variable [ $r; Value:MBS( "PDFKit.Release"; $PageRef ) ]
          • Exit Loop If [ $page = $count ]
          • End Loop
          • Set Variable [ $r; Value:MBS( "PDFKit.Release"; $ref ) ]
          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: [Run]
                  Script NameRun 100 Times
                  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 [ $index; Value:0 ]
                      • Loop
                      • Set Variable [ $index; Value:$index + 1 ]
                      • Perform Script [ “Run”; Parameter: $index & "-" ]
                      • Exit Loop If [ $index = 100 ]
                      • End Loop
                      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: Split

                                  Used functions: