Page 1 of 1

Defining Business Object Data Source in Designer

Posted: Fri Feb 20, 2009 9:45 am
by dsdobbins
How do you define columns for nested business objects from within the designer? I have successfully defined my top level business object using "New Data Source... | Data from Business Object" and then defining columns corresponding to properties of my object. One of my properties, however, is an IList. How do I define this column in the designer so that I can have child columns that appear on my report?

Thanks
David

Defining Business Object Data Source in Designer

Posted: Fri Feb 20, 2009 4:12 pm
by Vital
Hello,

Please use following code:

Code: Select all

StiReport report = new StiReport();
report.Load("myreport.mrt");
report.RegData(object);
report.Dictionary.Synchronize();
Thank you.

Defining Business Object Data Source in Designer

Posted: Fri Feb 20, 2009 7:26 pm
by dsdobbins
Thank you for your response but I am trying to do this in the designer, not from code. Is this possible?

Defining Business Object Data Source in Designer

Posted: Tue Feb 24, 2009 6:39 am
by Edward
Hello,

Yes, it is possible.

Please define a Column of object type and then you will be able to access the data in the Column as follows:

Code: Select all

((myNamespaceFromReferencedAssemblyOfTheReport.MyIListType)MyDataSource.MyIListColumn)[i]
Thank you.