Interface Field
interface Field {
aggregation: FieldAggregationType;
columnType: ColumnType;
dataFormat?: DataFormat;
dataSource: DataSource;
dataType: undefined | DataType;
description: undefined | string;
id: string;
isCalculatedField: boolean;
isCombinedField: boolean;
isGenerated: boolean;
isGeospatial: boolean;
isHidden: boolean;
isPresentOnPublishedDatasource: boolean;
name: string;
role: FieldRoleType;
semanticRole?: string;
}
aggregation: FieldAggregationType;
columnType: ColumnType;
dataFormat?: DataFormat;
dataSource: DataSource;
dataType: undefined | DataType;
description: undefined | string;
id: string;
isCalculatedField: boolean;
isCombinedField: boolean;
isGenerated: boolean;
isGeospatial: boolean;
isHidden: boolean;
isPresentOnPublishedDatasource: boolean;
name: string;
role: FieldRoleType;
semanticRole?: string;
}
Properties
Readonlyaggregation
ReadonlycolumnType
OptionaldataFormat
Data formatting options for the field.
ReadonlydataSource
ReadonlydataType
Readonlydescription
description: undefined | string
Readonlyid
id: string
ReadonlyisCalculatedField
isCalculatedField: boolean
ReadonlyisCombinedField
isCombinedField: boolean
ReadonlyisGenerated
isGenerated: boolean
Returns
True if this field is generated by Tableau, false otherwise. Tableau generates a number of fields for a data source, such as Number of Records, or Measure Values. This property can be used to distinguish between those fields and fields that come from the underlying data connection, or were created by a user.
ReadonlyisGeospatial
isGeospatial: boolean
ReadonlyisHidden
isHidden: boolean
ReadonlyisPresentOnPublishedDatasource
isPresentOnPublishedDatasource: boolean
Readonlyname
name: string
Readonlyrole
OptionalsemanticRole
semanticRole?: string
The semantic role of the field. Can be either a geographic role (e.g. latitude, longitude, city, country, etc...) or an image role
A field contains information about what data source it belongs to, its role, and the ability to fetch the domain values.