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

MBS FileMaker Plugin Example Databases

CGImageSource Properties

All examples are included with download of MBS FileMaker Plugin.

CGImageSource Properties.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
CGImageSource Properties
8 fields defined, 0 record
CGImageSource Properties

Fields

Table Name: CGImageSource Properties - 8 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
PrimaryKeyNormal, TextAuto-Enter: Validation:
  • Only during data entry
  • Not empty
  • Unique
  • Strict validation
Storage:
  • Repetitions: 1
  • Indexing: Minimal
  • Automatically create indexes as needed
  • Index Language: Unicode Raw
Unique identifier of each record in this table
          CreationTimestampNormal, TimestampAuto-Enter:
          • Creation timestamp
          Validation:
          • Only during data entry
          • Strict data type: 4 digit year
          • Not empty
          • Strict validation
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
          Date and time each record was created
                  CreatedByNormal, TextAuto-Enter:
                  • Creation account name
                  Validation:
                  • Only during data entry
                  • Not empty
                  • Strict validation
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                  Account name of the user who created each record
                          ModificationTimestampNormal, TimestampAuto-Enter:
                          • Modification timestamp
                          Validation:
                          • Only during data entry
                          • Strict data type: 4 digit year
                          • Not empty
                          • Strict validation
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                          Date and time each record was last modified
                                  ModifiedByNormal, TextAuto-Enter:
                                  • Modification account name
                                  Validation:
                                  • Only during data entry
                                  • Not empty
                                  • Strict validation
                                  Storage:
                                  • Repetitions: 1
                                  • Indexing: None
                                  • Automatically create indexes as needed
                                  • Index Language: German
                                  Account name of the user who last modified each record
                                          Input ContainerNormal, BinaryAuto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                              JSONNormal, TextAuto-Enter:
                                              • Allow editing
                                              Validation:
                                              • Only during data entry
                                              Storage:
                                              • Repetitions: 1
                                              • Indexing: None
                                              • Automatically create indexes as needed
                                              • Index Language: German
                                                  DescriptionNormal, TextAuto-Enter:
                                                  • Allow editing
                                                  Validation:
                                                  • Only during data entry
                                                  Storage:
                                                  • Repetitions: 1
                                                  • Indexing: None
                                                  • Automatically create indexes as needed
                                                  • Index Language: German

                                                      Layout Objects: CGImageSource Properties

                                                      Regular Fields

                                                      Field Name: CGImageSource Properties::Description
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 117 pt
                                                      • Left: 114 pt
                                                      • Bottom: 148 pt
                                                      • Right: 1007 pt
                                                      • Anchoring: Left and Right, 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

                                                      Field Name: CGImageSource Properties::JSON
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 150 pt
                                                      • Left: 114 pt
                                                      • Bottom: 789 pt
                                                      • Right: 1007 pt
                                                      • Anchoring: Left and Right, Top and Bottom
                                                      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

                                                      Field Name: CGImageSource Properties::Input Container
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 11 pt
                                                      • Left: 820 pt
                                                      • Bottom: 102 pt
                                                      • Right: 1017 pt
                                                      • Anchoring: Right, 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
                                                      No

                                                      Buttons

                                                      Button PropertiesCoordinatesScript/Script Step
                                                        Type:
                                                      • Text: Import Image and Check
                                                      • Top: 32 pt
                                                      • Left: 14 pt
                                                      • Bottom: 78 pt
                                                      • Right: 226 pt
                                                      • Anchoring: Left, Top
                                                      Perform Script [ “Import” ]

                                                      Scripts:


                                                      Script Hierarchy

                                                      Import

                                                      Script NameImport
                                                      Run script with full access privilegesOff
                                                      Include In MenuYes
                                                      Layouts that use this script
                                                      Scripts that use this script
                                                        Script Definition
                                                        Script Steps
                                                        • Go to Field [ CGImageSource Properties::Input Container ]
                                                        • Insert Picture [ ]
                                                        • If [ Get(LastError) = 0 ]
                                                        • Set Variable [ $ImageSource; Value:MBS( "CGImageSource.CreateWithData"; CGImageSource Properties::Input Container ) ]
                                                        • If [ MBS("IsError") ]
                                                        • Show Custom Dialog [ Title: "Failed to load image."; Message: $ImageSource; Default Button: “OK”, Commit: “Yes” ]
                                                        • Else
                                                        • Set Variable [ $$GlobalMetadata; Value: MBS( "CGImageSource.Properties"; $ImageSource ) ]
                                                        • New Record/Request
                                                        • Set Field [ CGImageSource Properties::Description; "Global metadata" ]
                                                        • Set Field [ CGImageSource Properties::JSON; MBS("JSON.Colorize"; $$GlobalMetadata) ]
                                                        • Commit Records/Requests [ No dialog ]
                                                        • #loop counting up from 1 to $count
                                                        • Set Variable [ $count; Value:MBS( "CGImageSource.Count"; $ImageSource ) ]
                                                        • Set Variable [ $index; Value:0 ]
                                                        • If [ $index < $count ]
                                                        • Loop
                                                        • #your script steps here
                                                        • Set Variable [ $$Metadata; Value: MBS( "CGImageSource.Properties"; $ImageSource; $index ) ]
                                                        • New Record/Request
                                                        • Set Field [ CGImageSource Properties::Description; "Metadata for image " & ($index+1) ]
                                                        • Set Field [ CGImageSource Properties::JSON; MBS("JSON.Colorize"; $$Metadata) ]
                                                        • Commit Records/Requests [ No dialog ]
                                                        • #next
                                                        • Set Variable [ $index; Value:$index + 1 ]
                                                        • Exit Loop If [ $index ≥ $count ]
                                                        • End Loop
                                                        • End If
                                                        • Show Custom Dialog [ Title: "done"; Message: "Created " & ($count+1) & " records."; Default Button: “OK”, Commit: “Yes” ]
                                                        • End If
                                                        • End If
                                                        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: CGImageSource Properties

                                                                Used functions: