Usage and example
Switching between the tabs is implemented through actions. An action must be defined for each tab. In this example, the unique names of the reports are passed by the actions.
To insert and configure the Tab Control web extension:
- Create an Application Studio report named Note, and with the unique name bpt_Note.
- Specify Note in cell B4.
-
Insert the sample data in this table into the specified cell
ranges:
B16:B18 C16:C18 Note bpt_Note Sales bpt_Sales Net Profit bpt_NetProfit - Right-click cell C16 and select Define Action. Select Jump as the type and Web Extension as the mode. Specify =C16 as the value of the Target report input.
- Copy the action in cell C16 to cell C17 and change the target report to C17. Copy the action to cell C18 and change the target report to C18.
-
Click Web Extension on the Objects toolbar and double-click the Tab Control web extension.
The cursor changes to a cross hair.
-
Drag the cursor to insert, size, and position the web extension
so that it occupies cell range B1:G2.
The Format Web Extension dialog is displayed.
-
Specify these parameters. Specify ="" to use defaults where available.
- Item Captions
- =B16:B18
- This is the caption that is shown in the tab header.
- Item Data
- =C16:C18
- Item Invisibility
- =""
- These values are valid:
- TRUE
The item is not displayed.
- FALSE
- TRUE
- Item Status
- =""
- This parameter controls the optional enabling of tabs. These values are valid:
- Enabled
- Disabled
- Selected Item
- =C16
- This specifies which tab is initially selected. Any value in the Item Data range is valid.
- Min Width
- =""
- Specify the minimum width of tab items. Any value between 20 and 500 is valid.
- The height of the tab control is 30px. It is aligned to the bottom and fills the available width.
- Click OK.
- Create a copy of the Note report and name it Sales. Change the unique name to bpt_Sales.
- Specify Sales in cell B4.
- Create a second copy of the Note report and name it Net Profit. Change the unique name to bpt_NetProfit and specify Net Profit in cell B4.
-
View any of the reports in a web browser and click the tabs to navigate between the reports.
Scroll buttons are displayed if there is not enough space to display all tabs.