How to get the Visible column names from FeatureTable 4.16?

387
4
Jump to solution
07-14-2020 02:53 AM
Ranga_Tolapi
Occasional Contributor II

In this sample, I've have hidden all the fields except the first column i.e. "Recreation area name". I would like to get the visible column names dynamically in JavaScript, in this case I should get the "Recreation area name" column. Which property of FeatureTable can I look for?

Attribute Table 4.16

Esri Technical Support

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Ranga,

   Use featureTable.columns this collection of FieldColumn gives you the name, alias, and hidden properties of columns.

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Ranga,

   Use featureTable.columns this collection of FieldColumn gives you the name, alias, and hidden properties of columns.

0 Kudos
KenBuja
MVP Honored Contributor

The documentation on the FieldColumn class needs to be updated to show all the available properties. Currently, it doesn't include "hidden" even though it is available.

0 Kudos
Ranga_Tolapi
Occasional Contributor II

Hi Robert Scheitlin, GISP,

Thanks for your response, after some investigation I found the hidden property of FieldColumn. However, observed that hidden property was not exposed for FieldColumn.

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

This class is still in beta so, the available properties are not set in stone yet and the doc is not quite there yet.

0 Kudos