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
Defining Business Object Data Source in Designer
Hello,
Please use following code:
Thank you.
Please use following code:
Code: Select all
StiReport report = new StiReport();
report.Load("myreport.mrt");
report.RegData(object);
report.Dictionary.Synchronize();
Defining Business Object Data Source in Designer
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
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:
Thank you.
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]