I am working with a power table and have a binding on the Enabled property. When the table is set to disabled the table does the grayed out overlay basically like it should, but once it is switched back to enabled the header itself still has the disabled look. The header still functions as it should once it is enabled. I tried setting the configureHeaderStyle() to a static color but that still does the same thing. Is there some sort of refresh or anything I may need to do when re-enabling a power table?
What version of Ignition are you using?
8.1.45
This bug is still present in 8.1.53
Has this been reported to support? Is there a ticket on this?
This bug is still present in 8.3.7
I was able to patch it by adding this script to the initialize extension function
#def initialize(self):
from java.beans import PropertyChangeListener
class EnableListener(PropertyChangeListener):
def propertyChange(self, event):
if event.propertyName == 'enabled' and event.newValue:
table.tableHeader.defaultRenderer.enabled = True
# Get the inner table and add a listener to reenable the header's default renderer
# ...when the table is reenabled
table = self.table
table.addPropertyChangeListener(EnableListener())
The script adds a simple property change listener to the inner table that reenables the header renderer whenever the table is reenabled.
This is internal ticket IGN-11948, for what it's worth.