I'm using Enterprise Web Library to create some elaborate web forms, which I've found to be very easy using the auto-generated form items and FormItemBlock
. This is great for users who have authorization to mess with this data but my current issue is for users that don't. I want to share the page and the data shown with users in my application who have permission to view the data, not change it. Is there a way to easily switch some of the data to be read-only?
Asked
Active
Viewed 50 times
1

Sam Rueby
- 5,914
- 6
- 36
- 52
1 Answers
1
The Development Utility doesn't currently generate any form item getters that produce read-only controls, but you could use the generic getters. For example, this line of code would create a form item with a literal control:
GetMyFieldFormItem( true, ( value, label ) => value.GetLiteralControl(), value: currentValueFromDatabase );
I have plans to eventually implement:
- Individual read-only form items
- Read-only pages, where all form items are automatically read-only
- Read-only sites, where all form items on all pages are automatically read-only

William Gross
- 2,083
- 2
- 17
- 35