I have a sap.m.list: List1
I have a custom template: Template1
This template is taking data from an arrayofObject Array1
Eg:
Template1.addContent(
IdValue= new sap.m.Text({text: Array1[i].prospectId})
);
So now the template has data.
My question however is, how do I bind this template to the list?
list.bindAggregation() function requires a model which I do not have in this case. I tried with bindItems but maybe syntax is not proper.
Can someone please help me here?
I have a service which is loading data in 1 page. I need to save some of the data from this page and load it in another. So I am saving it as an array of objects. Or maybe i can save the data in some other way. Please suggest a solution.