Hi:
I want to create a Master/Detail report using XPO (from DevExpress) as my data source. My class is based on the typical Orders/Order Details relationship. Under XPO my Orders business object has a nested collection (OrderLines) of order detail lines, but how do I access this collection to use it as the Details data source on the band?
TIA,
MartinH.
eXpress Persistent Objects and nested collections
-
- Posts: 66
- Joined: Wed Apr 04, 2007 3:32 am
- Location: Spain
-
- Posts: 66
- Joined: Wed Apr 04, 2007 3:32 am
- Location: Spain
eXpress Persistent Objects and nested collections
Okay, it's sorted.
I have to run the designer from inside my program, when the XPO datasource has live data. It then sees the nested collection and I can connect my second band to it. I then save the report to a *.mrt file and load it back in at design time. I can now use the nested datasource(s) in my design under Visual Studio 2005.
Hope this might help someone,
MartinH.
I have to run the designer from inside my program, when the XPO datasource has live data. It then sees the nested collection and I can connect my second band to it. I then save the report to a *.mrt file and load it back in at design time. I can now use the nested datasource(s) in my design under Visual Studio 2005.
Hope this might help someone,
MartinH.
eXpress Persistent Objects and nested collections
Please register your base object via report.RegData() then the report engine will expand your nested objects automatically.
When RegData is called then the report engine converts all business objects to DataSources and Relations between them and all data is loaded in to the Dictionary.
When later you load into the StiReport instance a report template via Load() method, and not calling the RegData, then the report template may be edited without loading all data into the Dictionary, but with full representation of the scheme of the Data in the Dictionary.
Max level of nesting of the business objects can be set via StiOptions.Dictionary.Enumerables.MaxLevel static property for limiting the nesting of them.
Thank you.
When RegData is called then the report engine converts all business objects to DataSources and Relations between them and all data is loaded in to the Dictionary.
When later you load into the StiReport instance a report template via Load() method, and not calling the RegData, then the report template may be edited without loading all data into the Dictionary, but with full representation of the scheme of the Data in the Dictionary.
Max level of nesting of the business objects can be set via StiOptions.Dictionary.Enumerables.MaxLevel static property for limiting the nesting of them.
Thank you.