Let's follow up this discussion at the Neptune Community

(this forum will be kept in read-only mode)

Reset field of all records in model

 Hi,

I wonder what is the proper way for resetting same column of all records in a model ?


Brgds
Henrik

Hi Henrik,


Easiest way.. a lovely  for loop,


for (i = 0; i < yourModel.oData.length; i++) {


  yourModel.oData[i].FIELD = ''; // or yourModel.oData[i].FIELD = null;


}


// yourModel.refresh(); // optional: refresh changes on the screen


Kind regards,

Julian

exactly what I needed :D thx

 

Login or Signup to post a comment