This is the third in a series of three tutorials that demonstrate how to configure Microvellum Business Objects in a sample report. This tutorial assumes that you have a basic understanding of Business Objects in Microvellum reports. Click here to see an overview of the subject.
It also assumes that the Business Objects have been set up in the report dataset. Click here to view the procedure for configuring them in the report dataset. This must be finished before attempting the procedure in this tutorial.
Click here to see a useful tutorial on how to set up a report using Business Objects using subreports.
This tutorial will focus on how to configure a report to display a custom global variable that has been added to the default global variables. It will assign that global value to a report variable that is then used in report calculations.
Global variable name: Minimum_Cost_Panel_Report2
Configure the global variable as a Business Object using the procedures in earlier tutorials. Click the button Edit Data Source from the report viewer screen to enter the Report Setup area to do this.
Add and configure a report variable of type decimal to contain the Business Object global value.
Add a databand and set up the filter for only one specific global variable value.
Add event code at the appropriate level for what you are trying to accomplish. In this case, it should be in the After Print event and should be the following value: decMinimum_Cost_Panel_Report2 = EstimateProject_GlobalVariables.Value.
This expression sets a variable value with a global variable value.
Add text components to display the variable value, and one to perform a calculation on that value.
Here is the rendered report:
Fig. 8
You may also download the import file for this sample report created using this article.