Registering 2 datasources and creating relationship causes problem

Stimulsoft Reports.NET discussion
Post Reply
robinpearce
Posts: 38
Joined: Thu Apr 02, 2009 5:54 am

Registering 2 datasources and creating relationship causes problem

Post by robinpearce »

Hiya.

I am registerering 2 different datasources against a report like
a.RegData("People", m_persons);
a.RegData("Jobs", m_personJobs);
If I then go into the designer and create a relationship between these two datasources but when I then run the report it says

Parent datasource "People" and child datasource "Jobs" is not located in one dataset and cant be used in relationship X


Because of the nature of what I am writing i cannot put a collection of objects inside the other object and then register a single object- I really need to register them as two separate objects.

Is it possible to register two things separatley and then create a relationship between them ?

Best regards
Robin
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Registering 2 datasources and creating relationship causes problem

Post by Jan »

Hello Robin,

Please set CachelAllData property of report to true.

Thank you.
robinpearce
Posts: 38
Joined: Thu Apr 02, 2009 5:54 am

Registering 2 datasources and creating relationship causes problem

Post by robinpearce »

Jan - thank you very much - perfect
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Registering 2 datasources and creating relationship causes problem

Post by Edward »

Hi Robin!

You are welcome.

Please let us know if any additional help is required.

Thank you.
Post Reply