MBS FileMaker Plugin Example Databases

Split Multi Tiff

All examples are included with download of MBS FileMaker Plugin.

Split Multi Tiff.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts1
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 Multi Tiff
2 fields defined, 3 records
Split Multi Tiff

Fields

Table Name: Split Multi Tiff - 2 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
InputFileNormal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Global
  • Repetitions: 1
      OutputImageNormal, BinaryAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1

          Layout Objects: Split Multi Tiff

          Regular Fields

          Field Name: Split Multi Tiff::InputFile
          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
          • Top: 24 pt
          • Left: 138 pt
          • Bottom: 149 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 Multi Tiff::OutputImage
          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
          • Top: 162 pt
          • Left: 138 pt
          • Bottom: 287 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 tiff
            Additional Properties:
          • Change to hand cursor over button
          • Rectangular
          • Top: 60 pt
          • Left: 426 pt
          • Bottom: 85 pt
          • Right: 535 pt
          • Anchoring: Left, Top
          Perform Script [ “Split” ]

          Scripts:


          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Delete images
            Additional Properties:
          • Change to hand cursor over button
          • Rectangular
          • Top: 108 pt
          • Left: 426 pt
          • Bottom: 133 pt
          • Right: 535 pt
          • Anchoring: Left, Top
          Delete All Records [ No dialog ]

          Script Hierarchy

          Split

          Script NameSplit
          Run script with full access privilegesOff
          Include In MenuYes
          Layouts that use this script
          Scripts that use this script
            Script Definition
            Script Steps
            • # load image
            • Set Variable [ $list; Value:MBS("GMImage.NewImagesFromContainer"; Split Multi Tiff::InputFile) ]
            • If [ MBS("Iserror") ]
            • Exit Script [ Result: $list ]
            • Show Custom Dialog [ ]
            • End If
            • # start loop
            • Set Variable [ $count; Value:ValueCount ( $list ) ]
            • Set Variable [ $index; Value:1 ]
            • Loop
            • # run image
            • Set Variable [ $image; Value:GetValue($list; $index) ]
            • New Record/Request
            • Set Field [ Split Multi Tiff::OutputImage; MBS( "GMImage.WriteToTiffContainer"; $image; "test.tif" ) ]
            • Commit Records/Requests [ Skip data entry validation; No dialog ]
            • Set Variable [ $r; Value:MBS("GMImage.Destroy"; $image) ]
            • # next loop
            • Set Variable [ $index; Value:$index + 1 ]
            • Exit Loop If [ $index > $count ]
            • 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 Multi Tiff

                    Used functions:




                    Links
                    MBS FileMaker blog