ActiveReportsJS Report Designer Action Handlers
The majority of the ActiveReportsJS Report Designer UI consists of items related to a report design process - report items on the sidebar, formatting controls on the toolbar, and the data bar and the property grid. These are not customizable in the sense that a hosting application can't override these items' behavior. Check User Interface topic for more information on these standard User Interface elements. However, there are several customizable UI items that the hosting application should implement according to its specific requirements:
- The
SaveandSave Asbuttons - The
New Reportbutton - The
Openbutton - The
Previewbutton - The
Filelink
They are not visible by default, and the application's code should configure the action handlers to make them available and set their behavior.
Check the following pages for examples of the action handlers implementation:
- Enabling "New" button shows how to implement
onCreateaction handler. - Enabling "Open" button shows how to implement
onOpenaction handler. - Enabling "Save" and "Save as" buttons shows how to implement
onSaveandonSaveAsaction handlers - Enabling "Preview" button shows how to implement
onRenderaction handler.
The application can also use the onOpenFileMenu action handler to display the custom menu for the hosting application.
The application can also use the processCommand method of the Report Designer instance to invoke action handlers in response to other events. The argument specifies the action handler to be called. For example, processCommand("create") invokes the onCreate action handler.
Check Implement AutoSave page for the example of using the processCommand method to trigger the action handler.