Page 1 of 1

Problems with dynamic business objects

Posted: Thu Sep 13, 2012 8:26 pm
by Daniel Schmitz
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

Re: Problems with dynamic business objects

Posted: Fri Sep 14, 2012 10:26 am
by Alex K.
Hello,

Can you please send us a sample project which reproduces the issue for analysis.

Thank you.

Re: Problems with dynamic business objects

Posted: Tue Sep 25, 2012 2:19 pm
by Daniel Schmitz
Hi, the problem was solved by clearing the Columns from the StiBusinessObject before set the newer ones.
Thanks for the attention.

Re: Problems with dynamic business objects

Posted: Wed Sep 26, 2012 3:51 am
by Andrew
Dear Daniel,

Great!

Thank you.