AttribFC

AttribFC

new AttribFC(parent, idx, layerPackage, config)

Source:

Create an attribute specific feature class object

Parameters:
Name Type Description
parent Object

the Record object that this Feature Class belongs to

idx String

the service index of this Feature Class. an integer in string format. use '0' for non-indexed sources.

layerPackage Object

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

config Object

the config object for this sublayer

Methods

(static) aliasedFieldNameDirect(attribName, fields) → {String}

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

fields Array

list of field definition objects (esri format) for the layer.

Returns:

the best available user friendly attribute name

Type
String

(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

AttribFC

new AttribFC()

Source:

Methods

(static) aliasedFieldNameDirect(attribName, fields) → {String}

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

fields Array

list of field definition objects (esri format) for the layer.

Returns:

the best available user friendly attribute name

Type
String

(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