Page 2 of 2

Re: One To Many Relation and BusinessObjects

Posted: Fri Jan 24, 2014 12:49 pm
by HighAley
Hello.

Please, try to change argument of next method:

Code: Select all

aReport.Dictionary.SynchronizeBusinessObjects(5);
Thank you.

Re: One To Many Relation and BusinessObjects

Posted: Fri Jan 24, 2014 1:26 pm
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

Re: One To Many Relation and BusinessObjects

Posted: Fri Jan 24, 2014 2:00 pm
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 2145 times
Sorry for bothering you with this, if was my fault!

Thanks and have a nice weekend!
Pascal

Re: One To Many Relation and BusinessObjects

Posted: Mon Jan 27, 2014 5:55 am
by HighAley
Hello.

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

Thank you.