Quantcast
Channel: FileMaker Forum > Report an issue
Viewing all articles
Browse latest Browse all 3510

The Get(TriggerCurrentPanel) and Get(TriggerTargetPanel) functions Evaluate to Zero when passed as a... (6 Comments)

$
0
0

Issue report by Malcolm Fitzgerald

Product

FileMaker Pro

Version

14

Operating system version

Mac OS X 10.9.5

Description of the issue

Scripts may be triggered on Tab and Sliding Panels using OnPanelSwitch.

Two obvious conditions for testing when switching between panels are the current panel and the target panel, both are easily obtained using Get(TriggerCurrentPanel) and Get(TriggerTargetPanel) functions.

However, both of these functions return zero when used in a script parameter calculation of the script being called.

Steps to reproduce the problem

Create a tab panel with more than one panel.
Create a script which will display the value of the script parameter passed to it.
Attach a script trigger to the tab panel, triggered OnPanelSwitch.
In the script parameter calculation dialog box enter either, Get(TriggerCurrentPanel) or Get(TriggerTargetPanel).
Switch tab panels to display the result.

Expected result

I did expect that the Get(TriggerCurrentPanel) or Get(TriggerTargetPanel) functions would have access to the current and target panel info when called in a calculation being passed to a script which has been triggered by OnPanelSwitch.

Actual result

The Get(TriggerCurrentPanel) and Get(TriggerTargetPanel) functions return zero.

Workaround

Both of these functions evaluate correctly inside the script that is called.

However, this means rewriting some scripts or writing script wrappers, simply for the purpose of obtaining a meaningful evaluation of these functions.

Viewing all articles
Browse latest Browse all 3510

Trending Articles