MBS FileMaker Plugin Example Databases

Picture Text Encoding

All examples are included with download of MBS FileMaker Plugin.

Picture Text Encoding.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
Picture Encoding
9 fields defined, 1 record
Picture Encoding

Fields

Table Name: Picture Encoding - 9 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
ImageOriginalNormal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
      ImageJPEGAsBase64Normal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          ImageJPEGAsHexNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              ImagePNGAsBase64Normal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  ImagePNGAsHexNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                      ImageFromBase64JPEGNormal, BinaryAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                          ImageFromBase64PNGNormal, BinaryAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          Storage:
                          • Repetitions: 1
                              ImageFromHexPNGNormal, BinaryAuto-Enter:
                              • Allow editing
                              Validation:
                              • Only during data entry
                              Storage:
                              • Repetitions: 1
                                  ImageFromHexJPEGNormal, BinaryAuto-Enter:
                                  • Allow editing
                                  Validation:
                                  • Only during data entry
                                  Storage:
                                  • Repetitions: 1

                                      Layout Objects: Picture Encoding

                                      Regular Fields

                                      Field Name: Picture Encoding::ImageOriginal
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 70 pt
                                      • Left: 138 pt
                                      • Bottom: 195 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: Picture Encoding::ImageJPEGAsBase64
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 201 pt
                                      • Left: 139 pt
                                      • Bottom: 323 pt
                                      • Right: 392 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: Picture Encoding::ImageJPEGAsHex
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 330 pt
                                      • Left: 138 pt
                                      • Bottom: 452 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
                                      Yes

                                      Field Name: Picture Encoding::ImagePNGAsBase64
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 464 pt
                                      • Left: 138 pt
                                      • Bottom: 586 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
                                      Yes

                                      Field Name: Picture Encoding::ImagePNGAsHex
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 592 pt
                                      • Left: 138 pt
                                      • Bottom: 714 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
                                      Yes

                                      Field Name: Picture Encoding::ImageFromBase64JPEG
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 201 pt
                                      • Left: 396 pt
                                      • Bottom: 323 pt
                                      • Right: 649 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: Picture Encoding::ImageFromBase64PNG
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 464 pt
                                      • Left: 396 pt
                                      • Bottom: 586 pt
                                      • Right: 649 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: Picture Encoding::ImageFromHexPNG
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 592 pt
                                      • Left: 396 pt
                                      • Bottom: 714 pt
                                      • Right: 649 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: Picture Encoding::ImageFromHexJPEG
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 330 pt
                                      • Left: 396 pt
                                      • Bottom: 452 pt
                                      • Right: 649 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

                                      Buttons

                                      Button PropertiesCoordinatesScript/Script Step
                                        Type:
                                      • Text: Run
                                      • Top: 97 pt
                                      • Left: 396 pt
                                      • Bottom: 129 pt
                                      • Right: 507 pt
                                      • Anchoring: Left, Top
                                      Perform Script [ “Run” ]

                                      Scripts:


                                      Button PropertiesCoordinatesScript/Script Step
                                        Type:
                                      • Text: Clear
                                      • Top: 135 pt
                                      • Left: 396 pt
                                      • Bottom: 167 pt
                                      • Right: 507 pt
                                      • Anchoring: Left, Top
                                      Perform Script [ “Clear” ]

                                      Scripts:


                                      Script Hierarchy

                                      Run
                                      Clear

                                      Next Script: [Clear]
                                      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
                                        • #We get the differnt encoding as texts and we convert this texts to images
                                        • #Load from container
                                        • Set Variable [ $Ref; Value:MBS("GMImage.NewFromContainer"; Picture Encoding::ImageOriginal) ]
                                        • #Convert image to text...
                                        • Set Field [ Picture Encoding::ImageJPEGAsBase64; MBS("GMImage.GetJPEGAsBase64"; $ref) ]
                                        • Set Field [ Picture Encoding::ImageJPEGAsHex; MBS("GMImage.GetJPEGAsHex"; $ref) ]
                                        • Set Field [ Picture Encoding::ImagePNGAsBase64; MBS("GMImage.GetPNGAsbase64"; $ref) ]
                                        • Set Field [ Picture Encoding::ImagePNGAsHex; MBS("GMImage.GetPNGAsHex"; $ref) ]
                                        • #Release image
                                        • Set Variable [ $R; Value:MBS("GMImage.Free"; $ref) ]
                                        • #Convert text to images...
                                        • Set Variable [ $Ref1; Value:MBS("GMImage.NewFromHex"; Picture Encoding::ImageJPEGAsHex) ]
                                        • Set Variable [ $Ref2; Value:MBS("GMImage.NewFromHex"; Picture Encoding::ImagePNGAsHex) ]
                                        • Set Variable [ $Ref3; Value:MBS("GMImage.NewFromBase64"; Picture Encoding::ImageJPEGAsBase64) ]
                                        • Set Variable [ $Ref4; Value:MBS("GMImage.NewFromBase64"; Picture Encoding::ImagePNGAsBase64) ]
                                        • #Set the images as result to the container
                                        • Set Field [ Picture Encoding::ImageFromHexJPEG; MBS("GMImage.WriteToPNGContainer"; $Ref1; "test.png") ]
                                        • Set Field [ Picture Encoding::ImageFromHexPNG; MBS("GMImage.WriteToPNGContainer"; $Ref2; "test.png") ]
                                        • Set Field [ Picture Encoding::ImageFromBase64JPEG; MBS("GMImage.WriteToPNGContainer"; $Ref3; "test.png") ]
                                        • Set Field [ Picture Encoding::ImageFromBase64PNG; MBS("GMImage.WriteToPNGContainer"; $Ref4; "test.png") ]
                                        • #Release images
                                        • Set Variable [ $R; Value:MBS("GMImage.Free"; $Ref1) ]
                                        • Set Variable [ $R; Value:MBS("GMImage.Free"; $Ref2) ]
                                        • Set Variable [ $R; Value:MBS("GMImage.Free"; $Ref3) ]
                                        • Set Variable [ $R; Value:MBS("GMImage.Free"; $Ref4) ]
                                        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 NameClear
                                                Run script with full access privilegesOff
                                                Include In MenuYes
                                                Layouts that use this script
                                                Scripts that use this script
                                                  Script Definition
                                                  Script Steps
                                                  • #Clear the fields
                                                  • Set Field [ Picture Encoding::ImageJPEGAsBase64; "" ]
                                                  • Set Field [ Picture Encoding::ImageJPEGAsHex; "" ]
                                                  • Set Field [ Picture Encoding::ImagePNGAsBase64; "" ]
                                                  • Set Field [ Picture Encoding::ImagePNGAsHex; "" ]
                                                  • Set Field [ Picture Encoding::ImageFromBase64JPEG; "" ]
                                                  • Set Field [ Picture Encoding::ImageFromBase64PNG; "" ]
                                                  • Set Field [ Picture Encoding::ImageFromHexPNG; "" ]
                                                  • Set Field [ Picture Encoding::ImageFromHexJPEG; "" ]
                                                  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: Picture Text Encoding

                                                          Used functions:




                                                          Links
                                                          MBS Xojo Plugins