# Alarms set bit state,how to set Event Value equal to bit value?

**URL:** <https://forum.inductiveautomation.com/t/alarms-set-bit-state-how-to-set-event-value-equal-to-bit-value/77117>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [July 31, 2023, 3:12am UTC](https://forum.inductiveautomation.com/t/alarms-set-bit-state-how-to-set-event-value-equal-to-bit-value/77117 "2023-07-31T03:12:38Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [December 19, 2023, 12:46pm UTC](https://forum.inductiveautomation.com/t/alarms-set-bit-state-how-to-set-event-value-equal-to-bit-value/77117/4 "2023-12-19T12:46:41Z")

</div>

One approach that would work would be to move your associated data expression to the label property:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/c/7cfca6a961ff06fb65a229a9fad2a1b1d9eece36.png)

Then, you could use [the method I developed for renaming alarm status table columns](https://forum.inductiveautomation.com/t/customizing-alarm-status-table/61102/4) to change the column headers in the table:

```auto
if event.propertyName == 'componentRunning':
	def getTable(statusTable):
		for component in statusTable.getComponents():
			if component. __class__. __name__ == 'AlarmStatusTable$1':
				return component
			else:
				table = getTable(component)
				if table:
					return table
	
	table = getTable(event.source)
	tableHeader= table.tableHeader
	columnModel = table.columnModel
	for column in range(table.columnCount):
		tableColumn = columnModel.getColumn(column)
		if tableColumn.headerValue == 'Label':
			tableColumn.setHeaderValue("Real Alarm Value")
		elif tableColumn.headerValue == 'Event Value':
			tableColumn.setHeaderValue("Tag Value")
	tableHeader.repaint()

```

**Result:**  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/5/b5faa2655cbce13d380bc7259afdfce76e759fa6.png)

---

_[View the full topic](https://forum.inductiveautomation.com/t/alarms-set-bit-state-how-to-set-event-value-equal-to-bit-value/77117)._
