AttribFC

AttribFC

new AttribFC(parent, idx, layerPackage)

Source:

Create an attribute specific feature class object

Parameters:
Name Type Description
parent Object

record object this FC belongs to.

idx String

feature index of the feature class

layerPackage Object

a layer package object from the attribute module for this feature class

Methods

(static) unAliasAttribs(attribs, fields) → {Object}

Source:

Convert an attribute set so that any keys using aliases are converted to proper fields

Parameters:
Name Type Description
attribs Object

attribute key-value mapping, potentially with aliases as keys

fields Array

fields definition array for layer

Returns:

attribute key-value mapping with fields as keys

Type
Object

aliasedFieldName(attribName) → {Promise}

Source:

Get the best user-friendly name of a field. Uses alias if alias is defined, else uses the system attribute name.

Parameters:
Name Type Description
attribName String

the attribute name we want a nice name for

Returns:

resolves to the best available user friendly attribute name

Type
Promise

checkDateType(attribName) → {Promise}

Source:

Check to see if the attribute in question is an esriFieldTypeDate type.

Parameters:
Name Type Description
attribName String

the attribute name we want to check if it's a date or not

Returns:

resolves to true or false based on the attribName type being esriFieldTypeDate

Type
Promise

getFormattedAttributes() → {Promise}

Source:

Retrieves attributes from a layer for a specified feature index

Returns:

promise resolving with formatted attributes to be consumed by the datagrid and esri feature identify

Type
Promise