Subclass Properties Incorrectly Detected

Stimulsoft Reports.NET discussion
Post Reply
Dustin
Posts: 1
Joined: Thu May 12, 2011 9:12 am
Location: Canada

Subclass Properties Incorrectly Detected

Post by Dustin »

We are passing a fairly complex data model to the reporting engine. One of the traits of our data model is that the properties on the passed object may be sub-classed of the object type of the property. If this is the case, these properties are cast as the property's object type, hiding any additional attributes on them
For example,
Say we want to report on a list of books.
Books have authors and authors may be one of two classes: Class Author, or subclassed NovelAuthor.
If books have a property for the author of type Author, when they are fed to the report engine the additional attributes on NovelAuthor are not exposed.

This is a simplified example. In our case, we are extending model classes and we can be confident that we will always be passing the subclassed object (Basically we have a base common code model that we add additional properties to based on the project)

Is there any way to force the engine to dynamically determine the properties, rather than examining the type of the property and typecasting to that?

If you run the attached example, open the report and then view the Dictionary, you will notice that when the Author is rolled open, it has only the name Property. Desired behaviour is to have both the name and genre properties visible.
Attachments
1010.Export of Stimulsoft_Wpf.zip
(15.7 KiB) Downloaded 82 times
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Subclass Properties Incorrectly Detected

Post by Ivan »

Hello,

Sorry for the delay with response.
We need more time to prepare the answer for you.

Thank you.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Subclass Properties Incorrectly Detected

Post by Andrew »

Hello,

Unfortunately, on the current moment, there is no such functionality in our product, and we do not plan to add this in the future.

Thank you.
Post Reply