I have the following script that is executed by a client timer script. It checks a flag every 15 seconds, if true run script:
import system, app
print "Report print called"
print “report Open called”
print “report Opened”
def b(): import system print "Report Printing" win = system.gui.getWindow("Report PDF") win.getRootContainer().getComponent("Report Viewer").print(None, 0) print "Report should have printed" system.tag.writeToTag("Versa_Mill/Report_Ready_Flag", 0) system.nav.closeWindow("Report PDF") system.util.invokeLater(b, 5000)
The script only runs once after the client is first openned. You need to shutdown the client and re-open for it to work again.
Note: When the script runs it prints out the steps for the first execution. On subsequent attemps it only prints “Report print called”
Any thoughts as too why it will not execute on subsequent triggers?