How to Set Custom Shapes Styles

Using ADF Pivot Table Components 26-3 – Row edge: The vertical axis to the left of the body of the pivot table. In Figure 26–1 , the row edge contains two layers, Year and Product, and each row in the pivot table represents the combination of a particular year and a particular product. – Column edge: The horizontal axis above the body of the pivot table. In Figure 26–1 , the column edge contains three layers, Measure, Channel, and Geography, and each column in the pivot table represents the combination of a particular measure value Sales or Units, a particular channel indicator All Channels, and a particular geographic location World or Boston. – Page edge: The edge represented by the pivot filter bar, whose layers can be filtered or pivoted with the layers in the row and column edges. ■ Layers: Nested attributes that appear in a single edge. In Figure 26–1 , the following three layers appear in the column edge: Measure, Channel, and Geography. The following two layers appear in the row edge: Year and Product. ■ Header cell: The labels that identify the data displayed in a row or column. Row header cells appear on the row edge, and column header cells appear on the column edge. ■ Data cell: The cells within the pivot table that contain data values, not header information. In the sample, the first data cell contains a value of 20,000.000. ■ QDR Qualified Data Reference: A fully qualified data reference to a row, a column, or an individual cell. For example, in Figure 26–1 , the QDR for the first data cell in the pivot table must provide the following information: – Year=2007 – Product=Tents – Measure=Sales – Channel=All Channels – Geography=World

26.2 Understanding Data Requirements for a Pivot Table

The pivot table component uses a model to display and interact with data. The specific model class used is oracle.adf.view.faces.bi.model.DataModel. You can use any row set flat file data collection to supply data to a pivot table. During the data binding operation, you have the opportunity to drag each data element to the desired location on the row edge or column edge of the pivot table in the data binding dialog. During data binding, you also have the option of specifying subtotals and totals for pivot table rows and columns, specifying drill operations at runtime, defining how to aggregate duplicate records, and setting up initial sort criteria. For information about the data binding of ADF pivot tables, see the Creating Databound ADF Pivot Tables section in the Oracle Fusion Middleware Fusion Developers Guide for Oracle Application Development Framework.

26.3 Pivoting Layers

You can drag any layer in a pivot table to a different location on the same edge or to a different edge. This operation is called pivoting and is enabled by default. 26-4 Web User Interface Developers Guide for Oracle Application Development Framework When you move the mouse over a layer, the layer’s pivot handle and an optional pivot label are displayed. If you move the mouse over the pivot handle, the cursor changes to a four-point arrow drag cursor. You can then use the handle to drag the layer to the new location. If you move the mouse over a layer on the row edge, the pivot handle appears above the layer, as shown in Figure 26–4 . Figure 26–4 Display of Pivot Handle on the Row Edge If you move the cursor over a layer in the column edge, the pivot handle appears to the left of the layer, as shown in Figure 26–5 . Figure 26–5 Display of Pivot Handle on the Column Edge If, in Figure 26–4 , you drag the pivot handle of the Time Year layer from the row edge to the column edge between the Measure Sales layer and the Channel layer, the pivot table will change shape as shown in Figure 26–6 . Figure 26–6 Sales Pivot Table After Pivot of Year You can customize pivoting to disable pivot labels and pivoting. To customize pivoting in a pivot table: 1. In the Structure window, right-click the dvt:pivotTable component and choose Go to Properties .

2. Optionally, in the Appearance category of the Property Inspector, in the

PivotLabelVisible field, select false from the dropdown list to disable the display of the label in the pivot handle.

3. Optionally, in the Behavior category of the Property Inspector, in the

PivotEnabled field, select false from the dropdown list to disable the pivoting. Using ADF Pivot Table Components 26-5

26.4 Using Selection in Pivot Tables

Selection in a pivot table allows a user to select one or more cells in a pivot table. Only one of the three areas including the row header, column header, or data cells can be selected at one time. An application can implement features such as displaying customized content for a context menu, based on currently selected cells. Example 26–1 shows sample code for getting the currently selected header cells. Example 26–1 Sample Code to Get Selected Header Cells UIPivotTable pt = getPivotTable if pt == null return null; HeaderCellSelectionSet headerCells = null; if pt.getSelection.getColumnHeaderCells.size 0 { headerCells = pt.getSelection.getColumnHeaderCells; } else if pt.getSelection.getRowHeaderCells.size 0 { headerCells = pt.getSelection.getRowHeaderCells; } At runtime, selection in a data cell highlights the cell, as shown in Figure 26–7 . Figure 26–7 Selected Data Cell Editable data cells are opened for editing by double-clicking the cell or selecting the cell and pressing F2. Data cells selected for direct editing are displayed as shown in Figure 26–8 . Figure 26–8 Data Cell Open for Direct Editing Data cells selected for dropdown list editing are displayed as shown in Figure 26–9 . Figure 26–9 Data Cell Open for Dropdown List Editing For more information about enabling data cell editing, see Section 26.10, Pivot Table Data Cell Stamping and Editing.