Property Getters/Setters Summary | ||
---|---|---|
function | getAutoShowCount() | |
function | setAutoShowCount(value) | |
Represent the number of top or bottom items that are automatically shown in the specified PivotTable field. | ||
function | getAutoShowField() | |
function | setAutoShowField(value) | |
Represents auto show field index. -1 means PivotField itself. It should be the index of the data fields. | ||
function | getAutoSortField() | |
function | setAutoSortField(value) | |
Represents the index of field which is auto sorted. -1 means PivotField itself,others means the position of the data fields. | ||
function | getBaseFieldIndex() | |
function | setBaseFieldIndex(value) | |
Represents the base field for a custom calculation when the ShowDataAs calculation is in use. | ||
function | getBaseIndex() | |
function | setBaseIndex(value) | |
Represents the PivotField index in the base PivotFields. | ||
function | getBaseItemIndex() | |
function | setBaseItemIndex(value) | |
Represents the item in the base field for a custom calculation when the ShowDataAs calculation is in use. Valid only for data fields. | ||
function | getBaseItemPosition() | |
function | setBaseItemPosition(value) | |
Represents the item in the base field for a custom calculation when the ShowDataAs calculation is in use. Valid only for data fields. Because PivotItemPosition.Custom is only for read,if you need to set PivotItemPosition.Custom, please set PivotField.BaseItemIndex attribute. The value of the property is PivotItemPosition integer constant. | ||
function | getCurrentPageItem() | |
function | setCurrentPageItem(value) | |
Represents the current page item showing for the page field (valid only for page fields). | ||
function | getDataDisplayFormat() | |
function | setDataDisplayFormat(value) | |
Represents how to display the values in a data field of the pivot report. The value of the property is PivotFieldDataDisplayFormat integer constant. | ||
function | getDisplayName() | |
function | setDisplayName(value) | |
Represents the PivotField display name. | ||
function | getDragToColumn() | |
function | setDragToColumn(value) | |
Indicates whether the specified field can be dragged to the column position. The default value is true. | ||
function | getDragToData() | |
function | setDragToData(value) | |
Indicates whether the specified field can be dragged to the data position. The default value is true. | ||
function | getDragToHide() | |
function | setDragToHide(value) | |
Indicates whether the specified field can be dragged to the hide position. The default value is true. | ||
function | getDragToPage() | |
function | setDragToPage(value) | |
Indicates whether the specified field can be dragged to the page position. The default value is true. | ||
function | getDragToRow() | |
function | setDragToRow(value) | |
Indicates whether the specified field can be dragged to the row position. The default value is true. | ||
function | getFunction() | |
function | setFunction(value) | |
Represents the function used to summarize the PivotTable data field. The value of the property is ConsolidationFunction integer constant. | ||
function | getGroupSettings() | |
Gets the group settings of the pivot field.
|
||
function | getInsertBlankRow() | |
function | setInsertBlankRow(value) | |
Indicates whether inserting blank line after each item. | ||
function | isAscendShow() | |
function | setAscendShow(value) | |
Indicates whether the specified PivotTable field is autoshown ascending. | ||
function | isAscendSort() | |
function | setAscendSort(value) | |
Indicates whether the specified PivotTable field is autosorted ascending. | ||
function | isAutoShow() | |
function | setAutoShow(value) | |
Indicates whether the specified PivotTable field is automatically shown,only valid for excel 2003. | ||
function | isAutoSort() | |
function | setAutoSort(value) | |
Indicates whether the specified PivotTable field is automatically sorted. | ||
function | isAutoSubtotals() | |
function | setAutoSubtotals(value) | |
Indicates whether the specified field shows automatic subtotals. Default is true. | ||
function | isCalculatedField() | |
Indicates whether the specified PivotTable field is calculated field.
|
||
function | isIncludeNewItemsInFilter() | |
function | setIncludeNewItemsInFilter(value) | |
Indicates whether including new items to the field in manual filter. The default value is false. | ||
function | isInsertPageBreaksBetweenItems() | |
function | ||
Indicates whether inserting page breaks after each item. The default value is false. | ||
function | isMultipleItemSelectionAllowed() | |
function | ||
indicates whether the field can have multiple items selected in the page field The default value is false. | ||
function | isRepeatItemLabels() | |
function | setRepeatItemLabels(value) | |
Indicates whether repeating labels of the field in the region. The default value is false. | ||
function | getItemCount() | |
Gets the count of the base items in this pivot field.
|
||
function | getItems() | |
Get all labels of pivot items in this field.
|
||
function | getName() | |
function | setName(value) | |
Represents the name of PivotField. | ||
function | getNonAutoSortDefault() | |
function | setNonAutoSortDefault(value) | |
Indicates whether a sort operation that will be applied to this pivot field is an autosort operation or a simple data sort. | ||
function | getNumber() | |
function | setNumber(value) | |
Represents the built-in display format of numbers and dates. | ||
function | getNumberFormat() | |
function | setNumberFormat(value) | |
Represents the custom display format of numbers and dates. | ||
function | getOriginalItems() | |
Get the original base items;
|
||
function | getPivotItems() | |
Gets the pivot items of the pivot field
|
||
function | getPosition() | |
Represents the index of |
||
function | getRange() | |
Gets the group range of the pivot field
|
||
function | getShowAllItems() | |
function | setShowAllItems(value) | |
Indicates whether all items displays in the PivotTable report, even if they don't contain summary data. show items with no data The default value is false. | ||
function | getShowCompact() | |
function | setShowCompact(value) | |
Indicates whether display labels from the next field in the same column on the Pivot Table view | ||
function | getShowInOutlineForm() | |
function | setShowInOutlineForm(value) | |
Indicates whether layout this field in outline form on the Pivot Table view | ||
function | getShowSubtotalAtTop() | |
function | setShowSubtotalAtTop(value) | |
when ShowInOutlineForm is true, then display subtotals at the top of the list of items instead of at the bottom | ||
function | getShowValuesSetting() | |
Gets the settings of showing values as when the ShowDataAs calculation is in use.
|
Method Summary | ||
---|---|---|
function | addCalculatedItem(name, formula) | |
Add a calculated formula item to the pivot field.
|
||
function | getCalculatedFieldFormula() | |
Get the formula string of the specified calculated field .
|
||
function | getFilters() | |
Gets all pivot filters of this pivot field.
|
||
function | getPivotFilterByType(type) | |
Gets the pivot filter of the pivot field by type
|
||
function | getPivotFilters() | |
Gets the pivot filters of the pivot field
|
||
function | getSubtotals(subtotalType) | |
Indicates whether showing specified subtotal.
|
||
function | groupBy(customGroupItems, newField) | |
Custom group the field.
|
||
function | groupBy(start, end, groups, interval, firstAsNewField) | |
Group the file by the date group types.
|
||
function | groupBy(interval, newField) | |
Automatically group the field with internal
|
||
function | groupBy(start, end, interval, newField) | |
Group the file by number.
|
||
function | hideDetail(isHiddenDetail) | |
Sets whether the PivotItems in a pivot field is hidden detail.That is collapse/expand this field.
|
||
function | hideItem(index, isHidden) | |
Sets whether the specific PivotItem in a data field is hidden.
|
||
function | hideItem(itemValue, isHidden) | |
Sets whether the specific PivotItem in a data field is hidden.
|
||
function | hideItemDetail(index, isHiddenDetail) | |
Sets whether the specific PivotItem in a pivot field is hidden detail.
|
||
function | initPivotItems() | |
Init the pivot items of the pivot field
|
||
function | isHiddenItem(index) | |
Gets whether the specific PivotItem is hidden.
|
||
function | isHiddenItemDetail(index) | |
Gets whether hidding the detail of the specific PivotItem..
|
||
function | setSubtotals(subtotalType, shown) | |
Sets whether the specified field shows that subtotals.
|
||
function | showValuesAs(displayFormat, baseField, baseItemPositionType, baseItem) | |
Show value of data field as different display format when the ShowDataAs calculation is in use.
|
||
function | ungroup() | |
Ungroup the pivot field.
|
function getPivotItems()
function getRange()
function getGroupSettings()
function isCalculatedField()
function getBaseIndex() / function setBaseIndex(value)
function getPosition()
function getName() / function setName(value)
function getDisplayName() / function setDisplayName(value)
function isAutoSubtotals() / function setAutoSubtotals(value)
function getDragToColumn() / function setDragToColumn(value)
function getDragToHide() / function setDragToHide(value)
function getDragToRow() / function setDragToRow(value)
function getDragToPage() / function setDragToPage(value)
function getDragToData() / function setDragToData(value)
function isMultipleItemSelectionAllowed() / function setMultipleItemSelectionAllowed(value)
function isRepeatItemLabels() / function setRepeatItemLabels(value)
function isIncludeNewItemsInFilter() / function setIncludeNewItemsInFilter(value)
function isInsertPageBreaksBetweenItems() / function setInsertPageBreaksBetweenItems(value)
function getShowAllItems() / function setShowAllItems(value)
function getNonAutoSortDefault() / function setNonAutoSortDefault(value)
function isAutoSort() / function setAutoSort(value)
function isAscendSort() / function setAscendSort(value)
function getAutoSortField() / function setAutoSortField(value)
function isAutoShow() / function setAutoShow(value)
function isAscendShow() / function setAscendShow(value)
function getAutoShowCount() / function setAutoShowCount(value)
function getAutoShowField() / function setAutoShowField(value)
function getFunction() / function setFunction(value)
function getShowValuesSetting()
function getDataDisplayFormat() / function setDataDisplayFormat(value)
function getBaseFieldIndex() / function setBaseFieldIndex(value)
function getBaseItemPosition() / function setBaseItemPosition(value)
function getBaseItemIndex() / function setBaseItemIndex(value)
function getCurrentPageItem() / function setCurrentPageItem(value)
function getNumber() / function setNumber(value)
function getInsertBlankRow() / function setInsertBlankRow(value)
function getShowSubtotalAtTop() / function setShowSubtotalAtTop(value)
function getShowInOutlineForm() / function setShowInOutlineForm(value)
function getNumberFormat() / function setNumberFormat(value)
function getItems()
function getOriginalItems()
function getItemCount()
function getShowCompact() / function setShowCompact(value)
function getPivotFilterByType(type)
type
- A PivotFilterType value.function getPivotFilters()
function getFilters()
function initPivotItems()
function groupBy(interval, newField)
interval: Number
- The internal of group.
Automatic value will be assigned if it's zero,
newField: boolean
- Indicates whether adding a new field to the pivottable.function groupBy(start, end, groups, interval, firstAsNewField)
start: DateTime
- The start datetimeend: DateTime
- The end of datetimegroups: Number Array
- Group typesinterval: Number
- The intervalfirstAsNewField: boolean
- Indicates whether adding a new field to the pivottable.
Only for the first group item.
function groupBy(start, end, interval, newField)
start: Number
- The start valueend: Number
- The end of valueinterval: Number
- The intervalnewField: boolean
- Indicates whether adding a new field to the pivottable
function groupBy(customGroupItems, newField)
customGroupItems: CustomPiovtFieldGroupItem[]
- The custom group items.newField: boolean
- Indicates whether adding a new field to the pivottablefunction ungroup()
function getCalculatedFieldFormula()
function setSubtotals(subtotalType, shown)
subtotalType: Number
- A shown: boolean
- whether the specified field shows that subtotals.function getSubtotals(subtotalType)
subtotalType: Number
- A function showValuesAs(displayFormat, baseField, baseItemPositionType, baseItem)
displayFormat: Number
- A baseField: Number
- The index to the field which ShowDataAs calculation bases on.baseItemPositionType: Number
- A baseItem: Number
- The index to the base item which ShowDataAs calculation bases on.
Only works when baseItemPositionType is custom.
function isHiddenItem(index)
index: Number
- The index of the pivotItem in the pivotField.function hideItem(index, isHidden)
index: Number
- the index of the pivotItem in the pivotField.isHidden: boolean
- whether the specific PivotItem is hiddenfunction isHiddenItemDetail(index)
index: Number
- The index of the pivotItem in the pivotField.function hideItemDetail(index, isHiddenDetail)
index: Number
- the index of the pivotItem in the pivotField.isHiddenDetail: boolean
- whether the specific PivotItem is hiddenfunction hideDetail(isHiddenDetail)
isHiddenDetail: boolean
- Whether hide the detail of the pivot field.function hideItem(itemValue, isHidden)
itemValue: String
- the value of the pivotItem in the pivotField.isHidden: boolean
- whether the specific PivotItem is hiddenfunction addCalculatedItem(name, formula)
name: String
- The item's name.formula: String
- The formula of pivot item.