How to Create Stoplight and Conditional Formatting in a Pivot Table

26-16 Web User Interface Developers Guide for Oracle Application Development Framework Figure 26–16 Pivot Filter Bar with Data Layer Filters You can also change the display of data in the pivot table by pivoting layers between the row, column, or page edges. Use the pivot handle to drag the layers between the edges as desired. Figure 26–17 shows the modified pivot table and pivot filter bar when the Channel data layer is pivoted to the page edge. Figure 26–17 Pivot Table and Pivot Filter Bar After Pivot

26.11.1 How to Associate a Pivot Filter Bar with a Pivot Table

You associate a pivot filter bar component, dvt:pivotFilterBar, to work with a pivot table component, dvt:pivotTable, by configuring the data model and associated properties to work with both components. Example 26–10 shows sample code for associating a pivot filter bar with a pivot table. Example 26–10 Sample Code for Pivot Filter Bar dvt:pivotFilterBar id=pf1 value={binding.pt.pivotFilterBarModel} modelName=pt1Model dvt:pivotTable id=pt1 value={binding.pt.dataModel} modelName=pt1Model partialTriggers=pf1 You can associate a pivot filter bar with a pivot table in any of the following ways: ■ Create a pivot table using the Data Controls Panel. When you drag a data collection from the Data Controls Panel to create a pivot table on your page, the Select Display Attributes page of the Create Pivot Table wizard provides the option to create a pivot filter bar to associate with the pivot table. You can choose to specify zero or more attributes representing data layers in the page edge. The data model and associated properties are automatically configured for you. For detailed information, see the Creating Databound ADF Pivot Tables section in the Oracle Fusion Middleware Fusion Developers Guide for Oracle Application Development Framework. ■ Add a pivot filter bar to a pivot table bound to data. Using ADF Pivot Table Components 26-17 From the ADF Data Visualizations page of the Component Palette, Pivot Table panel, you can drag a dvt:pivotFilterBar element above a dvt:pivotTable element that has been bound to a data collection. In this instance, you must configure the data model and associated properties in order for the pivot filter bar to work with the pivot table. ■ Add a pivot filter bar to a pivot table not bound to data. From ADF Data Visualizations page of the Component Palette, Pivot Table panel, you can drag a dvt:pivotFilterBar element above a dvt:pivotTable element that has not been bound to a data collection. In this instance, you must configure the data model and associated properties in order for the pivot filter bar to work with the pivot table.