Nested Objects

Nested Objects

Forum member · Sep 10, 2009
I have an object array within my object and am trying to bind the array to a sub report in my report. For example printing a report Authors -> Books. I'm using Event Driven Queries to bind in the objects at various levels. I can't seem to figure out how to get the current top level object when the event for the sub report fires. For example when i want to bind in the Books for a partucular author how do i pass the author to that sub report. Am i doing this correctly? Is this possible? do you have any examples

Re: Nested Objects

Support · Sep 10, 2009
Hello, You will be able to access the fields from the main report into your sub report. You will be having the author details in your main report and you have to load the books of that specific author in your sub report. If you are still having any problem then please send over the dplx file and the code you are using to our [^a|mailto:support@cete.com|Support Team^] so that they can help you further. Thanks, ceTe Software Support Team.

Re: Nested Objects

Forum member · Sep 10, 2009
the problem i have is that when the OpeningRecordSet delegate is called e.Recordset is null so i can look at the parent record.

Re: Nested Objects

Support · Sep 10, 2009
Hello, We will try to work on a sample example and get back to you with it as soon as we have that ready. The example will be very close to what you are trying to do. Thanks, ceTe Software Support Team

Re: Nested Objects

Forum member · Sep 10, 2009
i found where the data was hiding. e.LayoutWriter.RecordSets[valueKey] has the data.