report.RegBusinessObject vs report.RegData
Posted: Mon Mar 12, 2007 8:18 pm
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
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