The RAP user interface can be configured to meet the needs of your end users. There are three basic configurations available:
1. Calculations Dialog
For casual end users, a simple Calculations dialog is accessible from the speedmenu of the new TppVariable component. This dialog provides a place for calculations to be entered and returned via a single Result parameter. The calculation result is then displayed in the variable when the report prints.
In order to configure the user-interface to provide this level of functionality, set the RAPInterface riNotebookTab property to False and the riDialog
property to True. The figure below illustrates the Calculations… option
available when the end user accesses the speed menu of a variable.
When this option is selected, the Calculation dialog is displayed. The end user can then create code to assign the value of the variable.
2. Calc Tab with Variables
For more sophisticated users, RAP can be configured to display as an additional tab in the Report Designer. The new ‘Calc’ tab shows the bands of the report in a tree view, along with the associated variables. The end user can click on the variables and code the calculation in a syntax-sensitive edit window.
In order to configure the user-interface to provide this level of functionality, set the RAPInterface riNotebookTab property to True. When the report designer is displayed, the Calc tab will be visible, and the variables within each band will be listed.
3. Calc Tab with All Objects
The highest level of functionality is provided by the ‘Event’ view. This capability shows all of the report components in a tree view. When a component is selected, all of the events for the component are displayed. The user can then select an event and code an event handler.