Am I able to script the filtering functionality on a power table? I have a datasource (Sepasoft) that can’t be manipulated, and I would like to remove rows on condition. I can do this manually in runtime, but I’d like to be able to have the table load with this filter in place.
Thanks Paul.
However next question, and I know this is out of your ‘jurisdiction’… but say this wasn’t a power table, but was actually a Sepasoft model, specifically the PMIDowntimeTable class: do you know how I would apply the same thing to this? I can’t find the javadoc for their modules which is a bit frustrating…
From getting the base classes via script, I know that this class derives from the following:
Well, the top-level class is a unique class that extends a basic ‘panel’ - that means the actual component you interact with is almost certainly composed of various underlying objects. If you’re lucky, one of those will be a Jidetable, and the code I linked will still work, you’ll just have to inject it into the right reference. Try dumping all of the components inside of the ‘PMIDowntimeTable’ using something like this:
def recurse(component, indent = ''):
l = component.getComponents()
for index, c in enumerate(l):
print "%s %s %s" % (indent, index, c)
recurse(c, indent + '\t')
If one of them is a Jidetable, you’re golden - just need to find it (via chained getComponent(<index>) calls, then apply the code from above. If not, then you’re in for more trouble.
I have and power table with a time data col, user col, and description col. I’m using EDGE and I need to filter the time column between choose dates previously! Anybody Can help me to do that, because I used the last script but it is not working