Document Solutions for Excel, Java Edition | Document Solutions
com.grapecity.documents.excel Package / IPivotTable Interface / addDataField Method
The unique field on the server. If the source data is Online AnalyticalProcessing (OLAP), the unique field is a cube field. If the source data is non-OLAP (non-OLAP source data), the unique field is a PivotTable field.
The label used in the PivotTable report to identify this data field.
The function performed in the added data field.
In This Topic
    addDataField Method
    In This Topic
    Adds a data field to a PivotTable report. Returns a PivotField object that represents the new data field.
    Syntax

    Parameters

    field
    The unique field on the server. If the source data is Online AnalyticalProcessing (OLAP), the unique field is a cube field. If the source data is non-OLAP (non-OLAP source data), the unique field is a PivotTable field.
    caption
    The label used in the PivotTable report to identify this data field.
    function
    The function performed in the added data field.
    See Also