Hi, I am trying to use a try/except block. It looks like there was a thread on this awhile back, but the user wasn’t importing the java module. I just wanted to make sure I’m not missing anything.
import java dataSet = event.source.parent.getComponent('Table').data try: filePath = system.dataset.exportExcel("totals.xls", 1, dataSet) except java.io.FileNotFoundException, e: system.gui.errorBox('File is currently open. Please close file and export again.') if filePath is not None: system.net.openURL("file://"+filePath)