There are some applications where users may not have access to mouse clicks (the right click in particular) and are using a touchscreen. For their ease I have added a button to the screen to allow them to print a report (instead of right clicking the report and selecting print).
report = event.source.parent.getComponent('blah')
report.print()
My question is: I would like to do the same, but instead of a print button, I would like to have a ‘save’ button. Is there a function to call the save as a PDF instead of going through the right click and selecting ‘save as a PDF’?
For example:
report = event.source.parent.getComponent('blah')
report.save()