Skip to Content
0
K C
Mar 17, 2021 at 07:17 AM

​Fetch data from Fiori screen fields in one go and pass to Create method parameter

87 Views

Hello Experts,

Is there a way to get data from editable fields in Fiori in one go and pass to Model.Create method instead of read data for each field. Example:

Instead of below method

var OData = {
 Debitor: this.getView().byId("Debitor").getValue(),
 REC_ID: this.getView().byId("REC_ID").getValue() }; 
}
this.getView().getModel().create("/Sepa_MandateSet", OData,{}),


Is there a way to pass all fields in one go to OData variable as I have many fields on screen. This seems very time consuming to get values with this.getView().byId("Debitor").getValue() for all fields