on 08-06-2015 10:57 AM
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
Sorry it will apply only for text view not for input field.
for(i=0;i<data.length;i++)
{
textData= textData+data[i].Notes +"/n";
}
this.getView()..byId("notes").setText(textData);//"notes" should be textview not input field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.