FeatureDataRecord

Interface

Record of feature layer data source.

Inheritance: FeatureDataRecordDataRecord

Properties

dataSource
dataSource: FeatureLayerDataSource | SceneLayerDataSource

A reference of the data source object that has this record.

feature
feature: IFeature | Graphic

The feature returned from query REST API or the ArcGIS JS API Graphic object

Methods

clone
clone(deep?boolean): FeatureDataRecord

Create a clone of the data record object. Use shallow clone by default. If deep is true, will use deep clone.

Parameters
  • deepbooleanoptional 
getData
getData(): { [key: string]: any }

The data is a plain object. The format is {key: value}, and the key is "jimuFieldName".

The data before mapping use this schema: {fieldName: value}. We need to return this schema: {jimuFieldName: value}.

Returns 
{ [key: string]: any }
  • [key: string]: any
getFieldValue
getFieldValue(jimuFieldNamestring): any

Return the value of a specific field.

Parameters
  • jimuFieldNamestring
Returns 
any
getFormattedData
getFormattedData(intlIntlShape): any

Return formatted record.

Parameters
  • intlIntlShape
Returns 
any
getFormattedFieldValue
getFormattedFieldValue(jimuFieldNamestring, intlIntlShape): string

Return the formatted value of a specific field.

Parameters
  • jimuFieldNamestring
  • intlIntlShape
Returns 
string
getGeometry
getGeometry(): IGeometry

Return geometry of the record.

Returns 
IGeometry
getId
getId(): string

Return id of the record.

Returns 
string
setId
setId(idstring): void

Set id of the record.

Parameters
  • idstring
Returns 
void
toJson
toJson(): IFeature | Graphic

Return the data in JSON format, which is used to serialize data, and the key is "jimuFieldName".

Returns 
IFeature | Graphic

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.