report.RegBusinessObject vs report.RegData

Stimulsoft Reports.NET discussion
Post Reply
lcruiser
Posts: 58
Joined: Mon Jul 31, 2006 1:07 am

report.RegBusinessObject vs report.RegData

Post 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
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

report.RegBusinessObject vs report.RegData

Post 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.
lcruiser
Posts: 58
Joined: Mon Jul 31, 2006 1:07 am

report.RegBusinessObject vs report.RegData

Post by lcruiser »

The new version RegData is working very well.

Thankyou.
Post Reply