Skip to Content
0
Former Member
Mar 31, 2009 at 11:59 PM

Multiple data sources for DatabaseController using POJOs

91 Views

Hi all,

My problem is that I`m using collections of plain java objects as sources of several subreports, but right now I have one which consists of 2 tables with a relation. So how can I add these 2 datasources to the report, or is there some other simple option for doing this ?

Few months ago I have done several reports in .NET using DataSources - in that case it was simple because we can just pass the DataSet object to the SetDatasource method, but right now we are porting this software to Java and I`m not that familiar with this kind of Crystal Reports development.

The key thing is that we`re collecting the data at runtime, that`s why I decided to use Pojos as a datasource. Could you please give me some advices - can I do this with pojo collections, or should I look for some other approach that is simple for collecting the data at runtime ?

Thank you!