Using EntityCollections with XtraReports

Posts   
 
    
gabrielk avatar
gabrielk
User
Posts: 231
Joined: 01-Feb-2005
# Posted on: 31-May-2010 20:39:47   

Hi,

We're using XtraReports as our reporting engine. I've just created a project with a datasource based on an EntityCollection. It does see all the 'normal' properties that are based on DB Fields + Collections resulting from 1:N relations, but it doesn't show the related properties based on N:1 relations.

For example we would expect an 'GenericcategoryEntity' related via GenericcategoryId. We do have these properties and entities in code, but now in the Field Explorer of this reporting engine, see attachement.

Any suggestions how we can get this to work?

LLBLGEN 2.6, C#, Selfservicing, 2 Classes

Thanks Gabriƫl

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 01-Jun-2010 09:20:17   

My first guess is that's an Xtrareports issue. Could you please ask them how to show and display properties of SubObjects.

gabrielk avatar
gabrielk
User
Posts: 231
Joined: 01-Feb-2005
# Posted on: 01-Jun-2010 09:43:29   

Will do now.

I hoped someone already had this issue and knew the solution.

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 01-Jun-2010 09:57:57   

I'll close this thread for now, please post again here when you reach something.

Thanks.

gabrielk avatar
gabrielk
User
Posts: 231
Joined: 01-Feb-2005
# Posted on: 01-Jun-2010 10:02:22   

One issue is '[Browsable(false)]', I've seen that before.


        /// <summary> Gets / sets related entity of type 'ProductEntity'. This property is not visible in databound grids.
        /// Setting this property to a new object will make the load-on-demand feature to stop fetching data from the database, until you set this
        /// property to null. Setting this property to an entity will make sure that FK-PK relations are synchronized when appropriate.</summary>
        /// <remarks>This property is added for conveniance, however it is recommeded to use the method 'GetSingleProductEntity()', because 
        /// this property is rather expensive and a method tells the user to cache the result when it has to be used more than once in the
        /// same scope. The property is marked non-browsable to make it hidden in bound controls, f.e. datagrids.</remarks>
        [b][Browsable(true)] <----[/b]
        public virtual ProductEntity ProductEntity

Turning it to TRUE makes it visible. Still the properties are not accessible. Therefore I created an issue at DevExpress: http://www.devexpress.com/Support/Center/p/Q261249.aspx

I think that's it, the LLBLGen specific thing was the Browseable property.

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 01-Jun-2010 10:04:11   

Thanks for the feedback.

Waiting for DevExpress' reply.