Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9159

How do i bind a template to a list where no model is present

$
0
0

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.


Viewing all articles
Browse latest Browse all 9159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>