Multiple datasource views for a repeat control

Hi,I am quite new to xpages development and have to get data from 2 different views to a repeat control. Both the views are added as datasources the custom control with KeysExactMatch option.

Now, I want the data from both views to show up together in similar format.

The data is appearing fine for each view individually, I just need some formula to collate it. I know this might be quite simple but I am just unable to get hold of it.

Thanks,

Trapti

Subject: documentcollection?

Haven’t tried this myself but I imagine you’d want to use the two datasource views to create documentcollections and then combine them into one and return that as your datasource for the view.

You could use arrays as well probably and actually get all the data you want. It might be easier to sort like this, but more complex to get the data in the first place

Subject: Not resolved!!

Thanks Dan, sorry but I missed telling that the two document collections are from two different databases.So, this would not work out.

Any other idea? Through code or some xpage property which supports multiple datasources?

Subject: arrays

Then the only way to do it is to create your view data as an array I believe.