Returns the index and the object name of the panel to switch to when the OnPanelSwitch script trigger is activated.
Data type returned
FileMaker Pro 12.0
Use with the Get(TriggerCurrentPanel)
function. Returns an index value, starting from 1, when running a script triggered by the OnPanelSwitch script trigger
, and the object name assigned to the tab panel
or slide panel
. Returns 0
if the panel is invalid or if Get(TriggerTargetPanel) is not used with the OnPanelSwitch script trigger.
You can use the GetValue
function to extract the value you want to use from the index value returned by Get(TriggerTargetPanel).
When the tab panel or slide panel to be switched to is number 2, named “Products,” Get(TriggerTargetPanel) returns: