| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
MBS FileMaker Plugin Example Databases
Insert or Update Tests
All examples are included with download of MBS FileMaker Plugin.
| Overview | |
| Tables | 2 |
| Relationships | 0 |
| Layouts | 2 |
| Scripts | 21 |
| Value Lists | 0 |
| Custom Functions | 0 |
| Custom Menus | 24 |
| File Options | |
| Default custom menu set | [Standard FileMaker Menus] |
| Default theme | Apex Blue |
| When opening file | |
| Minimum allowed version | 12.0 |
| Login using | Account Name; Account= Admin |
| Allow user to save password | On |
| Require iOS passcode | Off |
| Show Sign-in fields | On |
| Switch to layout | Off |
| Hide all toolbars | Off |
| Script triggers | |
| OnFirstWindowOpen | Script: Start Script |
| OnLastWindowClose | Off |
| OnWindowOpen | Off |
| OnWindowClose | Off |
| OnFileAVPlayerChange | Off |
| OnWindowTransaction | Off |
| Thumbnail Settings | |
| Generate Thumbnails | On; Temporary |
| Table Name | Statistics |
Comments |
Occurrences in Relationship Graph |
| Source | 13 fields defined, 3 records |
Source | |
| Dest | 14 fields defined, 0 record |
Dest |
| Table Name: Source - 13 Fields | ||||||||
| Field Name | Type | Options | Comments | On Layouts | In Relationships | In Scripts | In Value Lists | |
| PrimaryKey | Normal, Text |
Auto-Enter:
|
Unique identifier of each record in this table | |||||
| CreationTimestamp | Normal, Timestamp |
Auto-Enter:
|
Date and time each record was created | |||||
| CreatedBy | Normal, Text |
Auto-Enter:
|
Account name of the user who created each record | |||||
| ModificationTimestamp | Normal, Timestamp |
Auto-Enter:
|
Date and time each record was last modified | |||||
| ModifiedBy | Normal, Text |
Auto-Enter:
|
Account name of the user who last modified each record | |||||
| TextField | Normal, Text |
Auto-Enter:
|
||||||
| NumberField | Normal, Number |
Auto-Enter:
|
||||||
| DateField | Normal, Date |
Auto-Enter:
|
||||||
| TimeField | Normal, Time |
Auto-Enter:
|
||||||
| TimestampField | Normal, Timestamp |
Auto-Enter:
|
||||||
| ContainerField | Normal, Binary |
Auto-Enter:
|
||||||
| Description | Normal, Text |
Auto-Enter:
|
||||||
| Hash | Calculated, Number |
Calculation:
|
||||||
| Table Name: Dest - 14 Fields | ||||||||
| Field Name | Type | Options | Comments | On Layouts | In Relationships | In Scripts | In Value Lists | |
| PrimaryKey | Normal, Text |
Auto-Enter:
|
Unique identifier of each record in this table | |||||
| CreationTimestamp | Normal, Timestamp |
Auto-Enter:
|
Date and time each record was created | |||||
| CreatedBy | Normal, Text |
Auto-Enter:
|
Account name of the user who created each record | |||||
| ModificationTimestamp | Normal, Timestamp |
Auto-Enter:
|
Date and time each record was last modified | |||||
| ModifiedBy | Normal, Text |
Auto-Enter:
|
Account name of the user who last modified each record | |||||
| TextField | Normal, Text |
Auto-Enter:
|
||||||
| NumberField | Normal, Number |
Auto-Enter:
|
||||||
| DateField | Normal, Date |
Auto-Enter:
|
||||||
| TimeField | Normal, Time |
Auto-Enter:
|
||||||
| TimestampField | Normal, Timestamp |
Auto-Enter:
|
||||||
| ContainerField | Normal, Binary |
Auto-Enter:
|
||||||
| Description | Normal, Text |
Auto-Enter:
|
||||||
| Hash | Calculated, Number |
Calculation:
|
||||||
| Key | Normal, Text |
Auto-Enter:
|
||||||
Layout Objects: Source
| Field Name: Source::TextField | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
|
Field Format:
|
Field Behavior:
|
Yes | |
| Field Name: Source::NumberField | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
|
Field Format:
|
Field Behavior:
|
Yes | |
| Field Name: Source::DateField | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
|
Field Format:
|
Field Behavior:
|
Yes | |
| Field Name: Source::TimeField | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
|
Field Format:
|
Field Behavior:
|
Yes | |
| Field Name: Source::TimestampField | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
|
Field Format:
|
Field Behavior:
|
Yes | |
| Field Name: Source::ContainerField | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
|
Field Format:
|
Field Behavior:
|
No | |
| Field Name: Source::Description | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
|
Field Format:
|
Field Behavior:
|
Yes | |
| Field Name: Source::Hash | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
|
Field Format:
|
Field Behavior:
|
Yes | |
| Field Name: Source::PrimaryKey | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
|
Field Format:
|
Field Behavior:
|
Yes | |
| Button Properties | Coordinates | Script/Script Step | ||||
|
|
Perform Script [ “Open Dest Window” ] Scripts: |
||||
| Button Properties | Coordinates | Script/Script Step | ||||
|
|
Perform Script [ “Matrix.InsertOrUpdateRecords” ] Scripts: |
||||
| Button Properties | Coordinates | Script/Script Step | ||||
|
|
Perform Script [ “Matrix.InsertOrUpdateRecords” ] Scripts: |
||||
Layout Objects: Dest
| Field Name: Dest::TextField | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
|
Field Format:
|
Field Behavior:
|
Yes | |
| Field Name: Dest::NumberField | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
|
Field Format:
|
Field Behavior:
|
Yes | |
| Field Name: Dest::DateField | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
|
Field Format:
|
Field Behavior:
|
Yes | |
| Field Name: Dest::TimeField | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
|
Field Format:
|
Field Behavior:
|
Yes | |
| Field Name: Dest::TimestampField | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
|
Field Format:
|
Field Behavior:
|
Yes | |
| Field Name: Dest::ContainerField | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
|
Field Format:
|
Field Behavior:
|
No | |
| Field Name: Dest::Description | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
|
Field Format:
|
Field Behavior:
|
Yes | |
| Field Name: Dest::Hash | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
|
Field Format:
|
Field Behavior:
|
Yes | |
| Field Name: Dest::Key | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
|
Field Format:
|
Field Behavior:
|
Yes | |
| Button Properties | Coordinates | Script/Script Step | ||||
|
|
Perform Script [ “Truncate Table” ] Scripts: |
||||
| Button Properties | Coordinates | Script/Script Step | ||||
|
|
Perform Script [ “FM.SQL.InsertRecords” ] Scripts: |
||||
| Button Properties | Coordinates | Script/Script Step | ||||
|
|
Perform Script [ “Matrix.InsertRecords” ] Scripts: |
||||
| Next Script: [Start Script] |
| Script Name | Open Dest Window |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps |
|
| 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: [Open Dest Window] | Next Script: [Truncate Table] |
| Script Name | Start Script |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps |
|
| 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: [Start Script] | Next Script: [-] |
| Script Name | Truncate Table |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps |
|
| 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: [Truncate Table] | Next Script: [FM.SQL.InsertRecords] |
| Script Name | - |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps | |
| 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: [-] | Next Script: [FM.SQL.InsertOrUpdateRecords] |
| Script Name | FM.SQL.InsertRecords |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps |
|
| 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: [FM.SQL.InsertRecords] | Next Script: [-] |
| Script Name | FM.SQL.InsertOrUpdateRecords |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps |
|
| 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: [FM.SQL.InsertOrUpdateRecords] | Next Script: [Matrix.InsertRecords] |
| Script Name | - |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps | |
| 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: [-] | Next Script: [Matrix.InsertOrUpdateRecords] |
| Script Name | Matrix.InsertRecords |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps |
|
| 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: [Matrix.InsertRecords] | Next Script: [-] |
| Script Name | Matrix.InsertOrUpdateRecords |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps |
|
| 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: [Matrix.InsertOrUpdateRecords] | Next Script: [FM.InsertRecordQuery] |
| Script Name | - |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps | |
| 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: [-] | Next Script: [FM.InsertOrUpdateRecordQuery] |
| Script Name | FM.InsertRecordQuery |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps |
|
| 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: [FM.InsertRecordQuery] | Next Script: [-] |
| Script Name | FM.InsertOrUpdateRecordQuery |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps |
|
| 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: [FM.InsertOrUpdateRecordQuery] | Next Script: [Open SQLite Database] |
| Script Name | - |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps | |
| 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: [-] | Next Script: [Delete Records in SQLite] |
| Script Name | Open SQLite Database |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps |
|
| 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: [Open SQLite Database] | Next Script: [Matrix.InsertRecordsToSQL] |
| Script Name | Delete Records in SQLite |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps |
|
| 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: [Delete Records in SQLite] | Next Script: [Matrix.InsertOrUpdateRecordsToSQL] |
| Script Name | Matrix.InsertRecordsToSQL |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps |
|
| 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: [Matrix.InsertRecordsToSQL] | Next Script: [FM.SQL.InsertRecordsToSQL] |
| Script Name | Matrix.InsertOrUpdateRecordsToSQL |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps |
|
| 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: [Matrix.InsertOrUpdateRecordsToSQL] | Next Script: [FM.SQL.InsertOrUpdateRecordsToSQL] |
| Script Name | FM.SQL.InsertRecordsToSQL |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps |
|
| 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: [FM.SQL.InsertRecordsToSQL] | Next Script: [-] |
| Script Name | FM.SQL.InsertOrUpdateRecordsToSQL |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps |
|
| 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: [FM.SQL.InsertOrUpdateRecordsToSQL] | Next Script: [FM.InsertRecord] |
| Script Name | - |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps | |
| 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: [-] |
| Script Name | FM.InsertRecord |
| Run script with full access privileges | Off |
| Siri Shortcut Visible | Off |
| Include In Menu | Yes |
| Layouts that use this script | |
| Scripts that use this script | |
| Script Definition | |
| Script Steps |
|
| 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: Insert or Update Tests
Used functions:- FM.InsertOrUpdateRecordQuery
- FM.InsertRecord
- FM.InsertRecordQuery
- FM.SQL.Execute
- FM.SQL.InsertOrUpdateRecords
- FM.SQL.InsertOrUpdateRecordsToSQL
- FM.SQL.InsertRecords
- FM.SQL.InsertRecordsToSQL
- FM.SQL.Release
- FM.SQL.RowCount
- Folders.UserDesktop
- Hash.CRC32
- Matrix.Height
- Matrix.InsertOrUpdateRecords
- Matrix.InsertOrUpdateRecordsToSQL
- Matrix.InsertRecords
- Matrix.InsertRecordsToSQL
- Matrix.NewWithSQL
- Matrix.Release
- Path.AddPathComponent
- SQL.Commit
- SQL.Connect
- SQL.Execute
- SQL.FreeCommand
- SQL.FreeConnection
- SQL.InternalSQLiteLibrary.Activate
- SQL.NewCommand
- SQL.NewConnection
- SQL.SetClient
- SQL.SetConnectionOption