Page 1 of 1

report.RegBusinessObject vs report.RegData

Posted: Mon Mar 12, 2007 8:18 pm
by lcruiser
Hi,

I have been using report.RegData to add BusinessObject as datasource which has been working fine.

I notice that there is report.RegBusinessObject, I have been expirementing it and found that it seems to recognise multiple levels of the object structure which is an improvement over report.RegData

For example I have class A, B and C.

class A has a property of type B
class B has a collection property of type C

1. If I use report.RegData, I would need to register A and C separately

report.RegData("A", A);
report.RegData("C", A.B.C);

2. Or I use report.RegBusinessObject, eg.

report.RegBusinessObject("A", A);


Using method 2 the Dictionary will automaticall show 3 data source items A, A_B and A_B_C. However these seems to contain only metadata. I can't find the object data.


Am I using report.RegBusinessObject incorrectly?
What is the "best practice" or recommended method when dealing BusinessObject?

Thanks

report.RegBusinessObject vs report.RegData

Posted: Tue Mar 13, 2007 6:11 am
by Edward
Please download the latest prerelease build from our site.

RegBusinessObject is not exists any more.

Now you can register nested BusinessObjects via RegData("BusinessObjectName",businessObjectName). After that all levels will be registered at once for all levels of hierarchy.

Thank you.

report.RegBusinessObject vs report.RegData

Posted: Tue Mar 13, 2007 5:13 pm
by lcruiser
The new version RegData is working very well.

Thankyou.