Has anyone else noticed there's a difference in how attribute data are viewed in the table widget and is determined by how you got to the table widget?
I have the table widget active in one of my web experiences and if I am interacting with the map and click on a feature, the pop-up window shows up and on the top left corner of the pop-up shows an "actions" button. Clicking on that button gives the option to "view in table". My table widget then shows up on the screen, but the attribute data that is connected to a domain will show the code instead of the description... (also in this table for some reason I think Object ID displays even if it wasn't a column that was turned on in the table widget)
However, if I just open the table and look at selected data, the attributes show up as expected (showing domain descriptions instead of codes)... also Object ID column is not shown.
Is there a way to fix that (or show domain descriptions instead of codes)? Can I just turn "off" the option in the pop-up action button to "view in table"?
And on another note, is there a way to turn off editing the attributes in the table widget?
Thank you everyone for your help and consideration.
Hi @COwens,
I see two issues in your post:
1. The coded values are displayed instead of descriptions in the table
2. The extra objectid field appears in the table
We are aware of the first issue and are currently working on a fix, which will be available in future releases.
The extra objectid field is intentional. Pop-ups may not contain all the fields from the layer, but the table view fetches all fields except a few insignificant ones, and `objectid` is not excluded. For instance, a layer might have 10 fields, but only 2 are configured to show in the pop-ups. However, the table view will display all 10 fields. Since users cannot configure which fields to include for runtime-generated layers, we include all fields to accommodate as many use cases as possible.
You can go to the Actions tab of Map widgets to uncheck View in Table, then you won't see this option from map pop-ups.
Thank you very much for your answer and help!
Also, is there a way to turn off editing the attributes in the table widget? Or it that because editing is turned on for the hosted feature?
Yes, you can turn off editing in Customize mode. If you don't see this option meaning the layer doesn't allow editing. You cannot turn off editing in Use layer settings mode.