Symptom
Read-only Property for fields in List (table)
Environment
Fiori
Reproducing the Issue
-
In Fiori, Goto any Work Center eg: Service
-
Click on Tickets view.
-
Click on Items facet.
-
In this facet, you have created List (table). All columns are editable though this is set as read-only.
It works as expected in HTML5 & Silverlight.
Cause
Fiori does not honor a bound readOnly property on the list level, it will only consider the fallbackValue. If the need arises to have the whole table bound readOnly, it can be achieved by binding each column's readOnly property to this field
Resolution
For below mentioned behaviours, apply solution in UI designer as follows.
Desired Behaviour | Solution |
Set whole table to editable | Default behavior, set the readOnly property on ListDefinition to false |
Set whole table to readOnly | Set readOnly property on ListDefinition to true |
Set whole table to be bound readOnly | Go to row 6, since binding on ListDefinition node is not supported |
Set a specific column to always be readOnly | Set readOnly property on Column to true |
Set all columns to always be readOnly | Set readOnly property on all Columns to true, or set whole table readOnly |
Set all columns to be bound readOnly | Bind readOnly property on all Columns to the designated field |
Keywords
KBA , bound read-only , bound field , read only , list , fiori , rui list , read-only table , table in fiori , AP-RC-MOB-UIF , Responsive UI , How To
Product
SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions