Clarification on a!writeToDataStoreEntity

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

Parents Reply
  • Hi Nihar Ranjan Hota,

    If your CDT has 5 fields and your are trying to query only 3 columns(using query selection). Now you tried to save the three columns to the ri or PV variable(assuming the variable of type CDT that has 5 columns), Here the other two columns will be saved as null. this is expected behavior. So we need to query all the columns or create a new cdt with only three columns and try to update that (I would suggest the first one query all the columns if you have less columns and does not impact performance)
Children