Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
MBS FileMaker Plugin Example Databases
Pass Parameters with Dictionary
All examples are included with download of MBS FileMaker Plugin.
Pass Parameters with Dictionary.fmp12
Overview | |
Tables | 1 |
Relationships | 0 |
Layouts | 1 |
Scripts | 6 |
Value Lists | 0 |
Custom Functions | 0 |
Custom Menus | 33 |
File Options | |
Default custom menu set | [Standard FileMaker Menus] |
When opening file | |
Minimum allowed version | 12.0 |
Login using | Account Name; Account= Admin |
Allow user to save password | Off |
Require iOS passcode | Off |
Switch to layout | Off |
Hide all toolbars | Off |
Script triggers | |
OnFirstWindowOpen | Off |
OnLastWindowClose | Off |
OnWindowOpen | Off |
OnWindowClose | Off |
OnFileAVPlayerChange | Off |
Thumbnail Settings | |
Generate Thumbnails | On; Temporary |
Table Name |
Statistics
| Occurrences in Relationship Graph |
Pass Parameters with Dictionary |
7 fields defined, 1 record
| Pass Parameters with Dictionary |
Table Name: Pass Parameters with Dictionary - 7 Fields | ||||||||
Field Name | Type | Options | Comments | On Layouts | In Relationships | In Scripts | In Value Lists | |
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:
|
|
|
||||
ContainerName | Calculated, Text | Calculation:
|
|
|
|
|||
ContainerField | Normal, Binary | Auto-Enter:
|
|
|
Layout Objects: Pass Parameters with Dictionary
Field Name: Pass Parameters with Dictionary::TextField | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Pass Parameters with Dictionary::NumberField | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Pass Parameters with Dictionary::DateField | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Pass Parameters with Dictionary::TimeField | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Pass Parameters with Dictionary::TimeStampField | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Pass Parameters with Dictionary::ContainerName | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Pass Parameters with Dictionary::ContainerField | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| No |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “SetDateFields” ] Scripts: |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “Build Parameters and Call Script1” ] Scripts: |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “Script Called1”; Parameter: MBS( "Dictionary.Create";
"textVariable"; Pass Parameters with Dictionary::TextField;
"numberVariable"; Pass Parameters with Dictionary::NumberField;
"dateVariable"; Pass Parameters with Dictionary::DateField;
"timeVariable"; Pass Parameters with Dictionary::TimeField;
"timeStampVariable"; Pass Parameters with Dictionary::TimeStampField;
"containerVariable"; Pass Parameters with Dictionary::ContainerField
)
/*
create dictionary here and define which keys and value it contains.
*/ ] Scripts: Fields: |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “Build Parameters and Call Script2” ] Scripts: |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “Script Called2”; Parameter: Let ( [
/*
Create new Dictionary
*/
param = MBS( "Dictionary.Create" );
/*
Fill in parameters
*/
r1 = MBS( "Dictionary.SetValueForKey"; param; "text"; Pass Parameters with Dictionary::TextField );
r2 = MBS( "Dictionary.SetValueForKey"; param; "number"; Pass Parameters with Dictionary::NumberField);
r3 = MBS( "Dictionary.SetValueForKey"; param; "date"; Pass Parameters with Dictionary::DateField);
r4 = MBS( "Dictionary.SetValueForKey"; param; "time"; Pass Parameters with Dictionary::TimeField);
r5 = MBS( "Dictionary.SetValueForKey"; param; "timestamp"; Pass Parameters with Dictionary::TimeStampField);
r6 = MBS( "Dictionary.SetValueForKey"; param; "container"; Pass Parameters with Dictionary::ContainerField)
/*
return dictionary
*/
] ; param ) ] Scripts: Fields: |
SetDateFields |
Build Parameters and Call Script1 |
Build Parameters and Call Script2 |
Script Called1 |
Script Called2 |
Trace |
Next Script: [Build Parameters and Call Script1] |
Script Name | SetDateFields |
Run script with full access privileges | 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: [SetDateFields] | Next Script: [Build Parameters and Call Script2] |
Script Name | Build Parameters and Call Script1 |
Run script with full access privileges | 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: [Build Parameters and Call Script1] | Next Script: [Script Called1] |
Script Name | Build Parameters and Call Script2 |
Run script with full access privileges | 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: [Build Parameters and Call Script2] | Next Script: [Script Called2] |
Script Name | Script Called1 |
Run script with full access privileges | 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 Called1] | Next Script: [Trace] |
Script Name | Script Called2 |
Run script with full access privileges | 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 Called2] |
Script Name | Trace |
Run script with full access privileges | 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: Pass Parameters with Dictionary
Used functions: