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

MBS FileMaker Plugin Example Databases

Read Italian Invoice

All examples are included with download of MBS FileMaker Plugin.

Read Italian Invoice.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts2
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
Read Italian Invoice
9 fields defined, 1 record
Read Italian Invoice

Fields

Table Name: Read Italian Invoice - 9 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
                                          P7M FileNormal, BinaryAuto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                              XMLNormal, TextAuto-Enter:
                                              • Allow editing
                                              Validation:
                                              • Only during data entry
                                              Storage:
                                              • Repetitions: 1
                                              • Indexing: None
                                              • Automatically create indexes as needed
                                              • Index Language: German
                                                  PDFNormal, BinaryAuto-Enter:
                                                  • Allow editing
                                                  Validation:
                                                  • Only during data entry
                                                  Storage:
                                                  • Repetitions: 1
                                                      NameNormal, TextAuto-Enter:
                                                      • Allow editing
                                                      Validation:
                                                      • Only during data entry
                                                      Storage:
                                                      • Repetitions: 1
                                                      • Indexing: None
                                                      • Automatically create indexes as needed
                                                      • Index Language: German

                                                          Layout Objects: Read Italian Invoice

                                                          Regular Fields

                                                          Field Name: Read Italian Invoice::P7M File
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 114 pt
                                                          • Left: 138 pt
                                                          • Bottom: 239 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: Default for Data Type
                                                          • Go to next field using: Tab key
                                                          No

                                                          Field Name: Read Italian Invoice::XML
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 243 pt
                                                          • Left: 138 pt
                                                          • Bottom: 757 pt
                                                          • Right: 458 pt
                                                          • Anchoring: Left, 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: Read Italian Invoice::PDF
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 152 pt
                                                          • Left: 469 pt
                                                          • Bottom: 757 pt
                                                          • Right: 1017 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
                                                          No

                                                          Field Name: Read Italian Invoice::Name
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 114 pt
                                                          • Left: 469 pt
                                                          • Bottom: 145 pt
                                                          • Right: 1017 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

                                                          Buttons

                                                          Button PropertiesCoordinatesScript/Script Step
                                                            Type:
                                                          • Text: Import
                                                          • Top: 152 pt
                                                          • Left: 21 pt
                                                          • Bottom: 186 pt
                                                          • Right: 127 pt
                                                          • Anchoring: Left, Top
                                                          Insert File [ Read Italian Invoice::P7M File ] [ Filters ] [ "p7m files": ( *.p7m ) ] [ Storage method: Insert ] [ Display icon ] [ Compression: Never compress ]

                                                          Fields:


                                                          Button PropertiesCoordinatesScript/Script Step
                                                            Type:
                                                          • Text: Run
                                                          • Top: 200 pt
                                                          • Left: 21 pt
                                                          • Bottom: 234 pt
                                                          • Right: 127 pt
                                                          • Anchoring: Left, Top
                                                          Perform Script [ “Extract” ]

                                                          Scripts:


                                                          Script Hierarchy

                                                          Extract
                                                          Clear

                                                          Next Script: [Clear]
                                                          Script NameExtract
                                                          Run script with full access privilegesOff
                                                          Siri Shortcut VisibleOff
                                                          Include In MenuYes
                                                          Layouts that use this script
                                                          Scripts that use this script
                                                            Script Definition
                                                            Script Steps
                                                            • Set Variable [ ]
                                                            • If [ IsEmpty ( Read Italian Invoice::P7M File ) ]
                                                            • Insert File [ ] [ Filters ] [ "P7M Files": ( *.p7m ) ] [ Storage method: Insert ] [ Display icon ] [ Compression: Never compress ]
                                                            • End If
                                                            • If [ not IsEmpty ( Read Italian Invoice::P7M File ) ]
                                                            • Set Variable [ $p; Value:MBS( "PKCS7.ReadFromContainer"; Read Italian Invoice::P7M File ) ]
                                                            • If [ MBS("IsError") ]
                                                            • Show Custom Dialog [ Title: "Failed to read P7M file"; Message: $p; Default Button: “OK”, Commit: “Yes” ]
                                                            • Else
                                                            • Set Variable [ $xml; Value:MBS( "PKCS7.SignedDataContent"; $p ; "UTF-8") ]
                                                            • If [ MBS("IsError") ]
                                                            • Show Custom Dialog [ Title: "Failed to read XML file"; Message: $xml; Default Button: “OK”, Commit: “Yes” ]
                                                            • Else
                                                            • Set Field [ Read Italian Invoice::XML; $xml ]
                                                            • Set Variable [ $name; Value:MBS( "XML.GetPathValue"; Read Italian Invoice::XML; "FatturaElettronica.FatturaElettronicaBody.Allegati.NomeAttachment") ]
                                                            • Set Field [ Read Italian Invoice::Name; $name ]
                                                            • Set Variable [ $attachment; Value:MBS( "XML.GetPathValue"; Read Italian Invoice::XML; "FatturaElettronica.FatturaElettronicaBody.Allegati.Attachment") ]
                                                            • Set Field [ Read Italian Invoice::PDF; Base64Decode ( $attachment; $name ) ]
                                                            • End If
                                                            • Set Variable [ $r; Value:MBS( "PKCS7.Release"; $p ) ]
                                                            • 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

                                                                    Previous Script: [Extract]
                                                                    Script NameClear
                                                                    Run script with full access privilegesOff
                                                                    Siri Shortcut VisibleOff
                                                                    Include In MenuYes
                                                                    Layouts that use this script
                                                                      Scripts that use this script
                                                                        Script Definition
                                                                        Script Steps
                                                                        • Replace Field Contents [ Read Italian Invoice::XML; Replace with calculation: "" ] [ No dialog ]
                                                                        • Replace Field Contents [ Read Italian Invoice::P7M File; Replace with calculation: "" ] [ No dialog ]
                                                                        • Replace Field Contents [ Read Italian Invoice::PDF; Replace with calculation: "" ] [ No dialog ]
                                                                        • Replace Field Contents [ Read Italian Invoice::Name; Replace with calculation: "" ] [ No dialog ]
                                                                        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: Read Italian Invoice

                                                                                Used functions: