FormControl.allowEdit(false);
The problem with this approach is that the same field might be exposed more than once in your design, for instance both in the grid view and in the details view. Also, users adding fields via Personalization might pose challenges. In order to make sure the user is not allowed to edit the data, use this approach: Datasource_ds.object(fieldNum(tablename, fieldname)).allowEdit(false);
Similarly you can enable/disable the fields if this is your business requirement. This will make it more evident for the user that the field is not editable: Datasource_ds.object(fieldNum(tablename, fieldname)).enabled(false);
No comments:
Post a Comment