Working with sub-bands in PixelPerfect reporting
Sub-bands allow you to create multiple versions of the same report band to display different content based on conditions. You can create advanced, dynamic output that is tailored to any number of scenarios, such as specific field values, aggregated totals, and more.
Creating sub-bands
Выполните следующие действия.
-
Create one or more bands that support sub-bands in your PixelPerfect template. For a highly formatted table, this can be the GroupHeader band.
Typically, the parent band is connected to a data binding, rather than the sub-bands themselves.
-
Right-click the band, and select Insert Sub-Band. Add as many sub-bands as desired.
After you have created sub-bands, you can customize them with conditional logic. For example, to show sub-band data conditionally:
-
Select a sub-band.
-
Click
on the right side panel to expand the Expressions menu.
-
In the menu, click the three-dot icon next to Visible.
The Expression Editor opens.
-
Define the conditional expression—for example, an Iif expression.
-
Repeat the process for each sub-band.
Uses
You can use sub-bands to:
-
Dynamically include or exclude data from reports using a condition—for example, use this to filter for an individual field value or hide elements unless an aggregation has a large enough value.
-
Style report content dynamically.
Example
For an example of using sub-bands to create a highly formatted table, see Example - Highly formatted table with sub-bands.