Introduction
This example shows some basics of creating events using the different plug-in functions. This example does not include an actual example database, so feel free to reproduce the calculations in your own database as you read through the explanation.
These functions would be placed inside a Set Field or Set Variable script/button step. For example:
Set Field[ db::results ; MMScript_CreateImmediateScriptEvent( “MyScript” ) ]
or
Set Variable[ $results ; MMScript_CreateImmediateScriptEvent( “MyScript” ) ]
Note
Error checking is especially important when using the Set Variable script step. If a function returns an error and you do not display or write the Variable data to a field, the error will never be seen and you will have no idea why the function did not work.
Error checking is especially important when using the Set Variable script step. If a function returns an error and you do not display or write the Variable data to a field, the error will never be seen and you will have no idea why the function did not work.
