Pivot table field list
9 Mar 20185 minutes to read
Initialization
The field list, also known as pivot schema designer, allows you to add, rearrange, filter, and remove fields to show data in the pivot grid exactly the way you desire.
Based on the data source and OLAP binding to the pivot grid control, the pivot table field list will be automatically populated with cube information or field names. This list provides an Excel like appearance and behavior.
<div class="e-control">
<!--Create a tag which acts as a container for PivotGrid-->
{{ej-pivotgrid id="PivotGrid" e-dataSource=model.dataSource e-pivotTableFieldListID=model.pivotTableFieldListID}}
<!--Create a tag which acts as a container for PivotTable Field List-->
{{ej-pivotschemadesigner id="PivotSchemaDesigner1" }}
</div>
export default Ember.Route.extend({
model() {
return {
dataSource: {
data: "http://bi.syncfusion.com/olap/msmdpump.dll", //data
catalog: "Adventure Works DW 2008 SE",
cube: "Adventure Works",
rows: [
{
fieldName: "[Date].[Fiscal]"
}
],
columns: [
{
fieldName: "[Customer].[Customer Geography]"
}
],
values: [
{
measures: [
{
fieldName: "[Measures].[Internet Sales Amount]",
}
],
axis: "columns"
}
]
},
pivotTableFieldListID: "PivotSchemaDesigner1"
}
}
});
Layout
The top portion of the layout shows field or cube items in a categorized way. They can dynamically be added to the report by drag and drop option or through simple check box selection.
Item(s) selected will be placed in the row section by default, except numeric based item(s) or measures, which will be placed in the value section, by default.
The bottom portion of the layout is segregated as follows:
- Report filter: Filters item(s) placed in a particular position of the layout.
- Value section: The value label usually displays the numeric value item(s) present in the report.
- Column section: Displays item(s) as column header and values in the pivot grid control.
- Row section: Displays item(s) as row header and values in the pivot grid control.
UI interactions
By drag and drop
You can alter the report on fly through drag and drop operation. You can drag any item from the field list and drop it in the column, row, value, or filter section available at the bottom of the field list.
By tree view selection
You can alter the report on fly through check and uncheck option as an alternate. By default, the fields will be added to the row label when checked.
By context menu
You can also alter the report by using the context menu.
Searching values
The search option available in the field list allows you to search a specific value that should be filtered from the list of values in the filter pop-up window.
Filtering
Values can be filtered by checking/unchecking the check box beside them in the filter pop-up window. At least, one value should present in the checked state while filtering, or else, the OK button will be disabled.