Select to view content in your preferred language

How to Set Table Widget to Read Only?

797
6
Jump to solution
09-23-2024 03:47 PM
SaadShahzad
Emerging Contributor

Hi,

I'm trying to incorporate a table widget strictly for selection purposes, however, if you double click on a cell it allows you the edit the layer that it is connected to. I do not want people to edit the data by double-clicking the data in the table. I want them to select the record using the table, and then submitting their edits in a survey widget.

How do I go about making the contents in the table widget to read-only/non-editable?

 

SaadShahzad_0-1727131625430.png

 

Thanks, 

0 Kudos
1 Solution

Accepted Solutions
EvanGPetrie
Occasional Contributor

@SaadShahzad 

It is completely backwards to how one would think. You will need to turn on editing ability by the checkbox and then make sure no field is checked while the editing ability is still on. You will notice the fields in the table have locks on them once this is done.

Hope this helps!

View solution in original post

6 Replies
Shen_Zhang
Esri Contributor

Hi @SaadShahzad, you need to configure fields to Customized. By default, it uses Use layer settings and it honors the editing settings of the layer.

Shen Zhang
0 Kudos
SaadShahzad
Emerging Contributor

Hi Shen, 

I appreciate your response. I changed the setting to Customized, and ensured that the Allow Editing checkbox was unchecked. But it did not change the behavior of the table, it still allows the user to double-click a cell and edit the contents within the table. 

 

SaadShahzad_0-1727191838029.png

 

0 Kudos
ZachBodenner
MVP Regular Contributor

I have also noticed this. Used to be (I think as of Dev edition 1.12 or .13) that you had to actively check that box to be able to edit, but now the table automatically accepts edits and toggling off doesn't change the behavior.

Happy mapping,
- Zach
0 Kudos
Shen_Zhang
Esri Contributor

If you can still edit the fields in the builder, it is expected as you are the owner of this application. Users with certain editing privileges can make edits regardless of the editing settings. Please see Editing privileges for more detail

Shen Zhang
0 Kudos
EvanGPetrie
Occasional Contributor

@SaadShahzad 

It is completely backwards to how one would think. You will need to turn on editing ability by the checkbox and then make sure no field is checked while the editing ability is still on. You will notice the fields in the table have locks on them once this is done.

Hope this helps!

SaadShahzad
Emerging Contributor

You're a life saver. This did the trick! Thanks a lot. 

0 Kudos