Hi, all
I'm new to Telerik reporting with silverlight and l'm using CSLA business object.
My business objects have no public constructor, instead have factory method .
and every query method allow only 1 criteria object,in which includes 1 to dozens fileds to create
linq entity syntax. However,looking into your manual, Telerik reporting's objectDataSource
should have public constructor and a public method for 'DataMember' which has same
number of params. I have already built hundreds of object and can't change into public constructor
and parameter signature as well. I have read many threads related, and not sure there might be
something I didn't catch up.
Though it looks like unacceptable, what I'd like to know is kinds of follwing code snippet
is available in server side.
// create biz object with factory methods
MyBizObjType myObj = MyBizObjType.NewMyBizObjType();
// create criteria object from parms
var criteria = new MyBizCriteria(parms1,parms2.......);
// call search method
myObj.FetchData(criteria);
// create reporting datasource
Telerik.Reporting.ObjectDataSource objectDataSource1 = new Telerik.Reporting.ObjectDataSource();
// objectDataSource1.DataMember = "GetCars";
// objectDataSource1.DataSource = typeof(Cars);
// set datasource such as data binding in winform's day.
objectDataSource1.DataSource = myObj;
You must have been asked hundreads of similar question,and may have a good alternative.
Pls let me know better way if above is unacceptable.
At this time, I think I have no other way to make each new entity object wrapping business
object who engages in reporting. But the real pain is that the number of object reaches several hundreads.
Thank you in advance.
Kang
I'm new to Telerik reporting with silverlight and l'm using CSLA business object.
My business objects have no public constructor, instead have factory method .
and every query method allow only 1 criteria object,in which includes 1 to dozens fileds to create
linq entity syntax. However,looking into your manual, Telerik reporting's objectDataSource
should have public constructor and a public method for 'DataMember' which has same
number of params. I have already built hundreds of object and can't change into public constructor
and parameter signature as well. I have read many threads related, and not sure there might be
something I didn't catch up.
Though it looks like unacceptable, what I'd like to know is kinds of follwing code snippet
is available in server side.
// create biz object with factory methods
MyBizObjType myObj = MyBizObjType.NewMyBizObjType();
// create criteria object from parms
var criteria = new MyBizCriteria(parms1,parms2.......);
// call search method
myObj.FetchData(criteria);
// create reporting datasource
Telerik.Reporting.ObjectDataSource objectDataSource1 = new Telerik.Reporting.ObjectDataSource();
// objectDataSource1.DataMember = "GetCars";
// objectDataSource1.DataSource = typeof(Cars);
// set datasource such as data binding in winform's day.
objectDataSource1.DataSource = myObj;
You must have been asked hundreads of similar question,and may have a good alternative.
Pls let me know better way if above is unacceptable.
At this time, I think I have no other way to make each new entity object wrapping business
object who engages in reporting. But the real pain is that the number of object reaches several hundreads.
Thank you in advance.
Kang