One To Many Relation and BusinessObjects

Stimulsoft Reports.WPF discussion
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: One To Many Relation and BusinessObjects

Post by HighAley »

Hello.

Please, try to change argument of next method:

Code: Select all

aReport.Dictionary.SynchronizeBusinessObjects(5);
Thank you.
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Re: One To Many Relation and BusinessObjects

Post by PJoyeux »

To what value should I change it?

I tried "3", "5" and "50", nothing changed... Why would "5" be better than "3" since the depth needed is only "2"?

I tried calling "RegBusinessObject" for the child-class too, but that didn't change things either...

Cheers,
Pascal
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Re: One To Many Relation and BusinessObjects

Post by PJoyeux »

Ok, forget it. I found the problem.

When I called RegBusinessObject (MainObject) the property MainObject.ChildObjects was null, so the List <ChildClass> was null...
Now I do this:

Code: Select all

MainObject = MainClass.Create();
MainObject.ChildObjects = new List <ChildClass> () { new ChildClass() };
RegBusinessObject (MainObject);
and it works!
Bild 6.png
Bild 6.png (7.55 KiB) Viewed 2146 times
Sorry for bothering you with this, if was my fault!

Thanks and have a nice weekend!
Pascal
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: One To Many Relation and BusinessObjects

Post by HighAley »

Hello.

We are glad to know that you have solved your issue.

Thank you.
Post Reply