Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Wiki Markup
{introducedin: 8.4

...

Description

Excerpt

Creates a new PivotTableField of the appropriate type in a FieldCollection

Signature
C#C#
}
{description}
{excerpt}Creates a new {{[EW8:PivotTableField]}} of the appropriate type in a {{FieldCollection{}}}{excerpt}
{signature:C#}
 public PivotTableField CreateField(SourceField field)
Signature
{signature}{signature:vb.net
vb.net
}
Public Function CreateField(ByVal field As SourceField) As PivotTableFIeld
Parameters

...

The SourceField to build the PivotTableField from.

Returns

A new PivotTableField.

Remarks
The name of a PivotTable field defaults to the name of the source field unless the field is a data field, or a field with that name already exists in the table. All data field names will have a unique number appended to the end. If a data field name was changed later to be the name of the source field, the name of any row label, column label, or page field created from the same source field will have a unique number appended to the end.
{signature}
{parameters}
{param:field}The {{[EW8:SourceField]}} to build the {{[EW8:PivotTableField]}} from.{param}
{returns}A new {{[EW8:PivotTableField]}}.{returns}
{remarks}
The name of a PivotTable field defaults to the name of the source field unless the field is a data field, or a field with that name already exists in the table. All data field names will have a unique number appended to the end. If a data field name was changed later to be the name of the source field, the name of any row label, column label, or page field created from the same source field will have a unique number appended to the end.
{remarks}