Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to set odata in sap.m.Textarea with each data in a row

Hi,

I am trying to populate the text area with the odata from backend.

i need to add each data in a row.Now the data is coming as a single string.

Below is the code i am using

var textData.

for(i=0;i<data.length;i++)

     {

        textData= textData+data[i].Notes;

  

     }

sap.ui.getCore().byId("notes").setValue(textData);

  },

I am getting the data as an appended string.i need to get each data in each row.

I tried to add "/n" & "<br/>"after each data  ,but it is getting appended.

Please help me in solving the issue.

Regards,

Anjaly

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question