Alarm Status Table: Change the Ack-button font(size)

Hi Everyone,

Does anybody know how to change the font(size) on the Ack-button of the default Alarm Status Table?
My customer is not happy with the default font size…


I don’t see an easy way to change the font on the ack button, but I do see a property to disable it. Then, you could make a button on the side that reads from the “Selected Alarms” property on the table, and runs system.alarm.acknowledge() for each item.

It would look really similar to the code snippet at the bottom of this page:

It is possible, although not very human-readable, to drill from the Ignition component reference down to the underlying Swing button and change the font. Keep in mind that there’s no guarantee this will work between versions - any changes made to the underlying objects will break low-level scripting like this.

from java.awt import Font
largeFont = Font("Dialog", Font.BOLD, 24)
table = event.source.parent.getComponent('Alarm Status Table')


Thanks Paul, this works!

Is there any info on this subject, because the next item is the table header on a Alarm Journal component, which you cannot change using a property of the component.

+1 for this feature : I would like to change the table header font (bold style) of the Alarm Journal component ? @PGriffith could you please post a script to achieve it ?

1 Like

You’ll need to drill into the Ignition component to get the underlying Jidesoft table object (I’d suggest making a recursive getComponents() function) but once you’ve got it, you can just execute:

from java.awt import Font
header = table.getTableHeader()

:clap::clap::clap: Thanks

@PGriffith, I’m looking for the underlying dataset of the alarm journal component to be able to export data to excel.
Any Idea to access to it ???

… and for the alarm status component too…

There’s this function to write simple Excel files:

Though I wonder how this question is related to setting a font on a button…

Hi. I tried drilling down using getComponents() however I can never seem to find the Jidesoft table object to modify the heading font. The closest thing that I could find was columnHeader as part of a JScrollPane object. Do you mind sharing the sequence of getComponent functions in order to access the header? I’m using version 7.9.7 by the way.


I think it’s worth noting for future people who have similar questions that Ignition’s API documentation is available online and details these components rather thoroughly.

That said, although it is available online, I don’t know how to access the latest version of it without googling an Ignition-API-specific string. For example, googling the following:

“ignition AlarmExpressionParseContext.AlarmExpressionPropResolver”

yields as its first result, this.

From there, you can click “All Classes” (or index if you don’t mind waiting for your browser to catch up), and find the component you’re looking for. Now, using @mazeyrat 's question as an example, we can find the alarmjournaltable in the list of “All Classes” and click it to see what it’s made of.

There are a lot more methods listed here than what you see in the ignition manual under Alarm Journal Table. I don’t see a means in the regular manual to even access the full list of alarms in the alarm journal table (since the question was asked, I’m assuming that “selected alarms” wasn’t enough). I haven’t tested the API functions, but I’m gonna guess that “getAlarms()” gets the contents of the alarm journal.

Now, tbh I do not know that this tool can be used to find paths through getComponent commands to different components… so for fun I wrote this script for drilling through components:

#this script is used on a button, and prints the complete list of "getComponents" for an object to the console.
def recursiveScan(codeString):
	i = 0
		while (1):
			newCodeString = codeString + ".getComponent(" + str(i) + ")"
			print newCodeString
		print "NO COMPONENT"

myObject = event.source.parent.getComponent('Alarm Journal') #replace with your object
recursiveScan("print myObject")

This is how deep I had to go, getTableHeader() doesn’t work!

See below my code:

from java.awt import Font
largeFont = Font(“Dialog”, Font.PLAIN, 18)

table = system.gui.getParentWindow(event).getComponentForPath(‘Root Container.Alarm Journal’)

1 Like

When you change font size for the buttons (ACK and Shelve) in the Alarm Status Table, then the three icons on the bottom right are so small…, especially on the touch screen…
How can we change the icons size too?