# Alarm Status Table - Refresh Inspect panel with selected alarm

**URL:** <https://forum.inductiveautomation.com/t/alarm-status-table-refresh-inspect-panel-with-selected-alarm/24670>\
**Category:** Ignition\
**Created:** [May 6, 2019, 12:30am UTC](https://forum.inductiveautomation.com/t/alarm-status-table-refresh-inspect-panel-with-selected-alarm/24670 "2019-05-06T00:30:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 6, 2019, 12:30am UTC](https://forum.inductiveautomation.com/t/alarm-status-table-refresh-inspect-panel-with-selected-alarm/24670/1 "2019-05-06T00:30:51Z")

</div>

I want to be able to refresh the alarm inspect panel with newly selected alarms (instead of remaining on the alarm selected originally when the panel was first opened).

I have this working, but I’m just toggling the inspect toggle button itself, which closes and re-opens the panel on alarm selection change. I’d rather not have to close the panel and instead just update the info in the panel itself.

Can I get some help with how I would do this?

FWIW this is what I have currently:

```auto
def refreshInspectPanel(alarmObj):
	'''
	Description:
	Refreshes the alarm inspect panel info with the selected alarm info.
	
	Usage:
	Call on the 'selectedAlarms' property change
	E.g.
if event.propertyName == 'selectedAlarms':
	shared.components.AlarmStatusTable.refreshInspectPanel(event.source)
	'''
	alarmObjInspectButton = alarmObj.getComponent(0).getComponent(1).getComponent(1).getComponent(0)
	
	#If the inspect button is 'selected' (i.e. the panel is shown), then toggle the button off and back on again to refresh the alarm being shown (dodgy refresh)
	if alarmObjInspectButton.isSelected():
		alarmObjInspectButton.doClick()
		alarmObjInspectButton.doClick()

```
