Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

ColorPanel.SetColorChangedScript

Sets script to trigger if color changed.

Component Version macOS Windows Linux Server iOS SDK
ColorPanel 8.3 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "ColorPanel.SetColorChangedScript"; Filename; ScriptName { ; Parameter } )   More

Parameters

Parameter Description Example Flags
Filename The database file name where the script is located. "test.fmp12"
ScriptName The script name. "MyScript"
Parameter Script parameter to pass. Optional

Result

Returns OK or error.

Description

Sets script to trigger if color changed.
You may need to clear this to disable the plugin from triggering script while in layout mode until version 8.4, where we don't call trigger in layout mode.
It may be good to call this with empty script and file name when you leave the layout where you need it to avoid unexpected script triggers later.

Examples

Set color changed script trigger:

Set Variable [ $r ; Value: MBS( "ColorPanel.SetColorChangedScript"; Get(FileName); "ColorChanged" ) ]

Clear script trigger:

MBS( "ColorPanel.SetColorChangedScript"; ""; "")

See also

Example Databases

This function is free to use.

Created 13th June 2018, last changed 20th April 2020


ColorPanel.SetColorChangedEvaluate - ColorPanel.SetVisible