cancel
Showing results for 
Search instead for 
Did you mean: 

How to read multiple sap.ui.layout.form values.

0 Kudos

Hi,

I have a fragment from which I would like to read multiple sap.ui.layout.form values.

Since i had used .clone() functionality to add the rows dynamically, i would like to read all the form values at a single shot instead of accessing byId() for each row.

Any advice is deeply appreciated

Thanks,

Natarajan

View Entire Topic
former_member254395
Active Participant
0 Kudos

Hi ,

incase of getting form field values, you shall loop the form and get cells and its values as below

var oFromFields = sap.ui.getCore().byId("formId")).getFormContainers()[0].getAggregation( "formElements");

loop the elements to get its values