You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XlsxDataField extracts ShowDataAs, but PivotTableField does not use this field. Is there any plans to support the use of ShowDataAs in the PivotTableField struct next version?
// xlsxDataField represents a field from a source list, table, or database// that contains data that is summarized in a PivotTable.typexlsxDataFieldstruct {
Namestring`xml:"name,attr,omitempty"`Fldint`xml:"fld,attr"`Subtotalstring`xml:"subtotal,attr,omitempty"`ShowDataAsstring`xml:"showDataAs,attr,omitempty"`BaseFieldint`xml:"baseField,attr,omitempty"`BaseItemint64`xml:"baseItem,attr,omitempty"`NumFmtIDstring`xml:"numFmtId,attr,omitempty"`ExtLst*xlsxExtLst`xml:"extLst"`
}
func (f*File) extractPivotTableFields(order []string, pt*xlsxPivotTableDefinition, opts*PivotTableOptions) {
...ifpt.DataFields!=nil {
for_, field:=rangept.DataFields.DataField {
opts.Data=append(opts.Data, PivotTableField{
Data: order[field.Fld],
Name: field.Name,
Subtotal: cases.Title(language.English).String(field.Subtotal),
})
}
}
}
The text was updated successfully, but these errors were encountered:
ShowerBandV
changed the title
PivotTable:xlsxDataField.ShowDataAs Can be used
Is PivotTable:xlsxDataField.ShowDataAs Can be used ?
Jul 3, 2024
XlsxDataField extracts ShowDataAs, but
PivotTableField
does not use this field. Is there any plans to support the use ofShowDataAs
in thePivotTableField
struct next version?The text was updated successfully, but these errors were encountered: