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
It is in the SAIL from only on click of a button ( which is not a submit button)
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 .
Please pull all the DB columns in query selection to avoid inserting nulls. I tried with 17.4 I see the same issue as you reported.[Corrected it is not issue and after playing with this approach, I came to know that it is default behavior]
Has it been like this from older versions as well? I am on 17.4 as well. Any other annotations that can help ?