Skip to Content
0
Former Member
Jul 20, 2016 at 06:56 AM

Read values from input boxes for update operation

25 Views

Is there a way to read the input field values dynamically without using oentry{} and oentry.field1="" as in below code.

var oEntry = {};
oEntry.Price = "599$";
oModel.update('/Products(1)', oEntry, null, function(){
  alert("Update successful");
  },function(){
alert("Update failed");});

I have a view with where the input boxes that are visible to user changes based on selection of item on the list. i.e the user can only see and input fields that are visible to him, and the count of input boxes is now nearly 80 -100 , so defining the update scenario as in above code is nt an option for us.

Please share if there is an alternative method to achieve update scenario.

Reference: OData Write Support - UI Development Toolkit for HTML5 (SAPUI5) - SAP Library

Appreciate your support.

Steve