Problems with dynamic business objects
Posted: Thu Sep 13, 2012 8:26 pm
Hi.
I have a situation where, before opens the report designer, the client selects which datasources will be avaiable to him, and then I create some business objects, according to them.
The problem is, if I create a report, based on a business obj, like the following: BussObj { prop1, prop2, prop3 }and after sometime I what to edit it, using my business object with different props, like this: BussObj { prop3, prop4, prop5 }.
Obviously I would like only prop3 ~ 5 would be displayed in the designer, but unfortunately all my 5 props (the 3 old + the 2 new) are displayed.
I'm using StiReport.RegBusinessObject(string name, object value) and StiReport.Dictionary.Synchronize()to assign my business objects to my report.
Thanks and Regards,
Daniel Schmitz
I have a situation where, before opens the report designer, the client selects which datasources will be avaiable to him, and then I create some business objects, according to them.
The problem is, if I create a report, based on a business obj, like the following: BussObj { prop1, prop2, prop3 }and after sometime I what to edit it, using my business object with different props, like this: BussObj { prop3, prop4, prop5 }.
Obviously I would like only prop3 ~ 5 would be displayed in the designer, but unfortunately all my 5 props (the 3 old + the 2 new) are displayed.
I'm using StiReport.RegBusinessObject(string name, object value) and StiReport.Dictionary.Synchronize()to assign my business objects to my report.
Thanks and Regards,
Daniel Schmitz