Page 1 of 1

Registering 2 datasources and creating relationship causes problem

Posted: Wed May 06, 2009 9:25 am
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

Registering 2 datasources and creating relationship causes problem

Posted: Wed May 06, 2009 2:21 pm
by Jan
Hello Robin,

Please set CachelAllData property of report to true.

Thank you.

Registering 2 datasources and creating relationship causes problem

Posted: Thu May 07, 2009 3:21 am
by robinpearce
Jan - thank you very much - perfect

Registering 2 datasources and creating relationship causes problem

Posted: Thu May 07, 2009 5:14 pm
by Edward
Hi Robin!

You are welcome.

Please let us know if any additional help is required.

Thank you.