cancel
Showing results for 
Search instead for 
Did you mean: 

Smarttable fields are changeable although they have been defined as not changeable

UI5_DEV1
Explorer
0 Kudos
119

Hello, 

in my SmartTable (UI5) i set my EntitySet which comes from Rap Backend. Here the fields are set as read only. When i bind this fields to smartField it works as expected. The Fields are read only. But in the Smarttable they are editable. 

Code for SmartTable: 

<smartTable:SmartTable
  id="secondSectionTable"
  useVariantManagement="true"
  useTablePersonalisation="true"
  showVariantManagement="true"
  useColumnLabelsAsTooltips="true"
  entitySet="myEntitySet"
  tableType="Table"  
  app:useSmartToggle="true"
  editable="true"
  enableAutoColumnWidth="true"
   showRowCount="true"
  enableAutoBinding="false">

Accepted Solutions (0)

Answers (1)

Answers (1)

UI5_DEV1
Explorer
0 Kudos

@Marian_Zeis  

I would expect that only the fields that are allowed by the RAP framework (metadata from the entity set) are editable. Currently you can edit all fields as soon as the table is set to editable even key fields which should not be editable.(Screenshot 2) If I use the same EntitySet with a SmartField and SmartForms, it will automatically decide whether it is editable or not (Screenshot 1). I would expect the same behavior on column level of the smarttable. You can see this behavior in the two screenshots here. Both Controls have the same EntitySet

SmartFields.pngSmartTableError.png