Title says it all
alternative: is there a way to determine via prop or scripting wether the active or shelved tab is open ?
Use case: when an alarm, either active or shelved is selected and a button is prssed, the faceplate of the control module the alarm belongs too has to open. I get the data from the tag the alarm belongs too, but the data presented to you is different wether the alarm is active or shelved
1 Like
You can determine which tab is open. . . sort of. I’m making a custom shelving feature right now and I noticed that I can have active and shelved alarms selected at the same time. But depending on which tab is open, I want to display different buttons - Shelve and Acknowledge for the Active tab, and Unshelve for the Shelved tab. If no alarms are selected in either tab, I hide the buttons.
The Alarm Status Table does not expose which tab is currently selected. But in my case, I was able to bind my buttons to len(selection.active.data) > 0 and len(selection.shelved.data) > 0. Then I added a change script to both data properties so that when the origin is Browser and len(currentValue.value) > 0, then I set the other tab’s selection mode to “none”, which causes the rows there to be unselected, leaving me with only rows selected in the current tab.
Not exactly the same issue you are dealing with, and I know it’s been a while since you posted this, but hopefully this helps.