Registering 2 datasources and creating relationship causes problem
Posted: Wed May 06, 2009 9:25 am
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
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