Try our conversational search powered by Generative AI!

Make readonly property editable in CMS

Vote:
 

Hello,

our customer needs to edit a value of a property that is readonly. So i wanted to (temporarily) make this property editable again via CMS.
But i don't find the option. In Code it is made readonly with [Editable(false)]

#267282
Edited, Nov 24, 2021 9:01
Vote:
 

You can't do that. ReadOnly setting is not stored in the database (tblPropertyDefinition table).

#267286
Nov 24, 2021 9:46
Tim Schmelter - Nov 24, 2021 9:50
Where is it stored then? How you can make a property that is [Editable(false)] editable again?
I noticed that i can't even change it i code, it stays readonly. Edit: Now it works, maybe there was another reason why it was readonly(language,project).
But would be good if we could change it in CMS
Dejan Caric - Nov 24, 2021 9:51
It's dojo magic. Fetched at runtime. You need to make code changes to make it editable again.
Dejan Caric - Nov 24, 2021 10:10
Is your property decorated with the ReadOnly attribute? Or any other custom attribute that inherits from IMetadataAware and sets metadata.IsReadOnly to true?
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.