The Status Panel in Reports and Business Processes
If your batch process is handled by a report (BasicReport) or a business-process (BusinessProcess) object, status-panel support is already built into the class. In these classes, you initialize the status panel by setting several properties:
- For reports:
report_captionreport_title-
For business processes:
process_captionprocess_titleprocess_message
You update a status value by sending the message update_status, passing the status text to display. The object automatically checks for an interrupt (user presses the Cancel button), provided the allow_cancel_state property is set to true. If an interrupt is encountered, a dialog will appear allowing the user to resume or cancel the process. Additionally, special provisions are made to handle errors that occur during the process.
This section will show you how to create a status panel for other batch processes where this capability is not already built in.