embeco

Determine Active Tab

Discussion created by embeco on Jan 11, 2016
Latest reply on Jan 12, 2016 by embeco

I have a panel with three tabs. In the footer I have buttons that call scripts to go to the next record, go to previous record, add a record, etc. I only want these buttons to do their task if the first tab is being displayed. If any other tab is being displayed I don't want any of these buttons to work.

I can't figure out how to tell the script that the first tab (tab name "Inspections") is displayed and to go ahead with the record operation.

I tried Get (TriggerCurrentTabPanel) and testing if a 1 is returned with no success.

I am not switching tabs when I want these actions to happen or not happen.

Any help would be appreciated.

Outcomes