Hi !
I’m trying to made a button that print the Alert Summary.
I always print tables with the next script
table = event.source.parent.getComponent(‘Table’)
table.print()
But it doesn’t work with Alert Summary table.
table = event.source.parent.getComponent(‘Alert Summary’)
table.print()
I got the next error
[color=#FF0000]Traceback (innermost last):
File “event:actionPerformed”, line 2, in ?
TypeError: print(): expected 1 args; got 0[/color]
I tried also with the function system.print.createPrintJob
job = system.print.createPrintJob(event.source.parent.getComponent(‘Alert Summary’))
job.print()
but it printing very bad (screen capture).
I suppose that’s happening coz Alert Summary is like a group container and not a normal table.
But should be a possibility to print it like the another tables, no?