Configuring the tab control report
This example describes how to configure the tab control and store this function in report variables for further processing.
- Create an Application Studio report named Tab Control.
- In the Properties - Report pane set the Immediate Writeback option to Automatic.
-
Create these report variables:
- Selected
Set to =TRUE.
- TabOneActive
Set to =TRUE.
- TabTwoActive
Set to =FALSE.
- TabThreeActive
Set to =FALSE.
- Selected
- Select row 2. This row holds the web extension. Change the height of this row to at least 50 pixels to make the web extension fit in.
- To create the first report section, select rows 3 to 18.
- In row properties, select the TabOneActive report variable, Formula, and Allow Growth.
- To create the second report section, select rows 19 to 35.
- In row properties select thr TabTwoActive report variable, Formula, and Allow Growth.
- To create the third report section select rows 36 to 55.
- In row properties, select the TabThreeActive report variable, Formula, and Allow Growth.
- Set the A1:L55 cell range to Visible Report Area.
- Define a different background color for each report section.
-
Insert the
="You are on tab "&ReportVariables.Selected.Text
formula into the C10, C26, and C43 cells. -
Insert this table into the B60:I68 cell range:
Key Caption Enabled Media name Type Tooltip Visible Parent ID 1 Tab 1 TRUE Alert I have an alert! TRUE ID 2 Tab 2 TRUE Progress There is something in progress. TRUE ID 3 Splitter TRUE Separator TRUE ID 4 TRUE Shared image unique name TRUE ID 5 Menu 1 TRUE TRUE ID 2 ID 6 Menu 2 TRUE ID 2 ID 7 Splitter TRUE Separator ID 2 ID 8 Menu 3 TRUE ID 2 Note: Use a shared image unique name from the repository. Right-click an empty cell and select Format cell > Images > Shared Images.