My data table has 5 columns with data. In the UI i am rendering only 2 fields to edit i an editable grid. While saving it overwrites the other field values as null. Is this an expected behavior ?How to avoid it ? I want to retain the value in the fields that are not brought to the UI at all.
Discussion posts and replies are publicly visible
Just create another CDT with 3 fields(primary key and other 2 fields which you want to update) and using annotations define the same table name and column names while creating this CDT. Also add this to your data store and use this Data store entity for writing data .