Using dynamic resources

When you add fields to a report, sometimes you may find that the view elements that have been predefined in the business view cannot meet your requirements, in which case, you can create some dynamic resources and use them in the report to get the desired data. Then when you save the report, the dynamic resources will be saved along with the report as its resources.

Dynamic resources are report level resources, which means they are only available to the report for which they are created.

Dynamic resources that can be used in web reports include formulas and aggregations.

Creating and using dynamic formulas

You should have some knowledge of the formula syntax before you can successfully compose a formula with no errors. To learn the formula syntax, refer to Formula syntax.

To create a dynamic formula:

  1. In the Resources box of the report wizard, expand the Dynamic Resource > Formulas node, then click <Add Formula…> to display the Formula Editor. See the editor.
  2. Enter a name for the formula in the Formula Name text field.
  3. Compose the formula by selecting the required fields, functions and operators from the Fields, Functions and Operators boxes. You can also write the formula by yourself in the editing box.

    For details about the functions and operators, refer to Built-in functions and Operators.

  4. Click the Check button to check whether or not the syntax of your formula is correct.
  5. When done, click the OK button to create the formula. You can then use the formula in the report.

Once a dynamic formula has been created, you can then drag it from the Resources panel to the desired position in the report as a detail object, or use it when working with the report wizard.

Also, if you want to further edit an existing dynamic formula or remove any formula that is not required, right-click the formula and then click the corresponding command on the shortcut menu.

Notes:

Creating and using dynamic aggregations

In Web Report Studio, you can also create dynamic aggregations by mapping them to the available resources such as group objects, detail objects in the current business view and the dynamic formulas that have been created in the report.

To create a dynamic aggregation:

  1. In the Resources box of the report wizard, expand the Dynamic Resource > Aggregations node, then click <Add Aggregation…>. The Add Aggregation dialog is then displayed. See the dialog.
  2. In the Aggregation Name text field, specify the display name of the dynamic aggregation.
  3. Click the button next to the Resource Name text field to specify the field on which the dynamic aggregation is based.
  4. From the Aggregate Function drop-down list, specify the aggregate function.
  5. When done, click OK to create the dynamic aggregation. You can then use the aggregation in the report

Once a dynamic aggregation is created, you can then drag it from the Resources panel to the desired position in the report to see the desired data, or use it when working with the report wizard. And if you want to edit any dynamic aggregation or delete it, right-click the aggregation and click Edit or Delete on the shortcut menu.