Components Crossplatform Mac & Win Server Client Old Deprecated Guides Examples Videos
New in version: 11.1 11.2 11.3 11.4 11.5 12.0 12.1 12.2 12.3 12.4 Statistic FMM Blog
Calls a custom function given the name with FileMaker values.
|FM Dictionary||11.3||✅ Yes||✅ Yes||✅ Yes||✅ Yes||✅ Yes|
|DictionaryRef||The reference number to the dictionary.
We prefer to use Dictionary.CreateNamed to create a special dictionary named "CF" and refer it globally with that name.
|Name||The name of the function.||"test"|
|Parameters...||Value to pass as parameter.|
Returns result or error.
DescriptionCalls a custom function given the name with FileMaker values.
This allows you to store expressions for custom functions in a MBS dictionary, so you can refer to them by name.
Parameters are passed to the function preserving the data type.
Please pass as many parameters as needed.
If the function needs more parameter, undefined values are used to fill up.
If the function needs less parameters, additional ones are dropped.
There is no limit in the number of parameters for MBS Plugin here.
Recursion is limited by FileMaker with about 200 deep. The plugin has a hard limit of 50000 for recursion, but before that, the FileMaker engine will report running out of memory.
The dictionary must contain the given Name as key and as value a valid FileMaker expression. This expression may have lines on the beginning with /// to name variables, one line per variable name.
The expression to evaluate can be in local language of FileMaker Pro or english.
For Server it must always be in english.
Two special variables are always defined: FunctionName and DictionaryRef with the values filled with the parameters you passed above.
If you like to have a function with variable parameters, you can use ParameterIndex and ParameterCount in your calculation. To query plugin parameter values, we have MBS("FM.CF.Parameter"; index) to query them.
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.
Please repeat Parameters parameter as often as you need.
Call Concat function with two parameters:
Call a function and pass field value, calculation and hard coded value:
Create dictionary, add a function and
Defines a recursive function Count, which calls itself:
- Version 11.4
- Added FM.CF.Parameter function.
- Version 11.3
- MBS FileMaker Plugin, version 11.3pr7
- MBS @ FMTraining.TV
- MBS FileMaker Plugin, version 11.3pr4
- MBS FileMaker Plugin, version 11.3pr3
Created 10th June 2021, last changed 13th July 2021
Feedback: Report problem or ask question.