if i can’t call “system.gui” on a gateway event script, is there an alternative on how i can call the report? what i’m trying to do is when a user clicks on a button from the edge client, the report created on the central server would send the report.
so far i got the other stuff working - the report is able to send when i have a client open on my central server but i can’t always have that open so i thought the script should be added on the gateway event under the tag change script.
this is currently what I need help with
report = event.source.parent.getComponent(‘Report Viewer’)
attachmentData = [report.getBytesPDF()]
attachmentNames = [event.source.parent.getComponent(‘Report Viewer’).suggestedFilename + “.pdf”]
how would i convert this so it would work on the gateway event script?