| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
MBS FileMaker Plugin Example Databases
JavaScriptMac Custom Functions
All examples are included with download of MBS FileMaker Plugin.
JavaScriptMac Custom Functions.fmp12
| Overview | |
| Tables | 2 |
| Relationships | 1 |
| Layouts | 2 |
| Scripts | 5 |
| Value Lists | 0 |
| Custom Functions | 3 |
| Custom Menus | 24 |
| 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 | Script: Start Script |
| OnLastWindowClose | Off |
| OnWindowOpen | Off |
| OnWindowClose | Off |
| OnFileAVPlayerChange | Off |
| Thumbnail Settings | |
| Generate Thumbnails | On; Temporary |
| Table Name |
Statistics
| Occurrences in Relationship Graph |
| JavaScriptCustomFunctions |
7 fields defined, 5 records
| JavaScriptCustomFunctions |
| JavaScriptCustomFunctionParameters |
5 fields defined, 9 records
| JavaScriptCustomFunctionParameters |
| Table Name: JavaScriptCustomFunctions - 7 Fields | ||||||||
| Field Name | Type | Options | Comments | On Layouts | In Relationships | In Scripts | In Value Lists | |
| ID | Normal, Number | Auto-Enter:
|
|
|
|
|||
| Name | Normal, Text | Auto-Enter:
|
|
|
||||
| Declaration | Normal, Text | Auto-Enter:
|
|
|
|
|||
| Description | Normal, Text | Auto-Enter:
|
|
|
|
|||
| Body | Normal, Text | Auto-Enter:
|
|
|
||||
| Result | Normal, Text | Auto-Enter:
|
|
|
||||
| SampleCall | Normal, Text | Auto-Enter:
|
|
|
|
|||
Layout Objects: JavaScriptCustomFunctions
| Field Name: JavaScriptCustomFunctions::Name | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes | |
| Field Name: JavaScriptCustomFunctions::Declaration | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes | |
| Field Name: JavaScriptCustomFunctions::Description | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes | |
| Field Name: JavaScriptCustomFunctions::Body | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes | |
| Field Name: JavaScriptCustomFunctionParameters::Name | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes | |
| Field Name: JavaScriptCustomFunctionParameters::Description | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes | |
| Field Name: JavaScriptCustomFunctionParameters::Value | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes | |
| Field Name: JavaScriptCustomFunctions::Result | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes | |
| Field Name: JavaScriptCustomFunctions::SampleCall | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes | |
| Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “Test Function” ] Scripts: |
||||
| Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “Register Function” ] Scripts: |
||||
| Portal Properties | Coordinates | Fields | Options | ||
|
| Field Objects
|
|
||
Layout Objects: JavaScriptCustomFunctionParameters
| Field Name: JavaScriptCustomFunctionParameters::ID | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes | |
| Field Name: JavaScriptCustomFunctionParameters::Name | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes | |
| Field Name: JavaScriptCustomFunctionParameters::Description | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes | |
| Field Name: JavaScriptCustomFunctionParameters::FunctionID | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes | |
| Field Name: JavaScriptCustomFunctionParameters::Value | |||||
| Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes | |
| Start Script |
| RefreshDeclaration |
| Register Function |
| Test Function |
| Try it |
| Next Script: [RefreshDeclaration] |
| Script Name | Start Script |
| 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: [Start Script] | Next Script: [Register Function] |
| Script Name | RefreshDeclaration |
| 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: [RefreshDeclaration] | Next Script: [Test Function] |
| Script Name | Register Function |
| 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: [Register Function] | Next Script: [Try it] |
| Script Name | Test Function |
| 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: [Test Function] |
| Script Name | Try it |
| 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 |
|
| Function Name | Parameters | Availability | Definition | In Field Definitions | In Scripts |
| JS | FunctionName | All accounts | MBS("JS.CallFunctionValues"; "js"; FunctionName) |
| |
| JS1 | FunctionName;Value1 | All accounts | MBS("JS.CallFunctionValues"; "js"; FunctionName; Value1) |
| |
| JS2 | FunctionName;Value1;Value2 | All accounts | MBS("JS.CallFunctionValues"; "js"; FunctionName; Value1; Value2) |
|
| Menu Sets | Menus | In Scripts | In Layouts | Comments |
| [Standard FileMaker Menus] |
|
Download example: JavaScriptMac Custom Functions
Used functions: