Files
odfstudio/wizards/source/scriptforge/python
Jean-Pierre Ledure bf51fd3de3 ScriptForge - (SF_Calc) new CreatePivotTable() method
Create a new pivot table with the properties defined by the arguments.
If a pivot table with the same name exists already in the
targeted sheet, it will be erased without warning.

Parameters:
  PivotTableName: The user-defined name of the new pivottable
  SourceRange: The range as a string containing the raw data.
    The first row of the range is presumed to contain
    the field names of the new pivot table
  TargetCell: the top left cell or the range as a string
  where to locate the pivot table.
    Only the top left cell of the range will be considered.
  DataFields: A single string or an array of
    field name + function to apply, formatted like:
      Array("FieldName[;Function]", ...)
    The allowed functions are: Sum, Count, Average, Max,
      Min, Product, CountNums, StDev, StDevP, Var, VarP and Median.
    The default function is:
      When the values are all numerical, Sum is used, otherwise Count.
  RowFields: A single string or an array of the field
    names heading the pivot table rows
  ColumnFields: A single string or an array of the field
    names heading the pivot table columns
  FilterButton: When True (default), display a "Filter"
    button above the pivot table
  RowTotals: When True (default), display a separate
    column for row totals
  ColumnTotals: When True (default), display a
    separate row for column totals

Returns:
  Return the range where the new pivot table is deployed.

The method may be used in Basic and Python user scripts.

Change-Id: I99df23e1b1b97b17a747ae15a079d7e2f5655b41
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133131
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2022-04-18 18:53:53 +02:00
..