Select to view content in your preferred language

Feature Table web component

132
2
Monday
LefterisKoumis
Frequent Contributor

When the layer-url property is not set at design time, <arcgis-feature-table> shows the layer list icon with the message “No layer”, even if users add layers later during runtime. Is there a way to replace this message with something like “Click the icon to display tables for available layers”? As it stands, users are not clearly informed that clicking the icon reveals the list of feature tables.

LefterisKoumis_0-1767648874349.png

@Sage_Wall @ReneRubalcava 

2 Replies
D_Atkins
Frequent Contributor

Excuse the pseudo-code, but I found the .layer and .layers properties of the new feature-table component to be relatively easy to update.  If you have programmatic control of the user_add_layer() workflow, you could set the featureTable.layer = users_new_layer. 

Maybe add an extra check, first, to be sure the user hasn't already selected a valid layer in the table, i.e.
if (featureTable.layer is not valid layer){featureTable.layer = new_layer}


0 Kudos
LefterisKoumis
Frequent Contributor

Yes, thank you—I’m aware of that. My question, however, is about changing the “No layer” text. Since the application may have multiple layers added dynamically by the user, I’d prefer the message to prompt the user to click the layer stack icon and select a layer in order to populate the table.

0 Kudos