More than two levels of BussinessObjects

Stimulsoft Reports.NET discussion
Tobias Grimm
Posts: 19
Joined: Tue Oct 23, 2007 9:16 am
Location: Germany

More than two levels of BussinessObjects

Post by Tobias Grimm »

Hi!

When using a nested list of DTO's as the data source like this:

Code: Select all

public class Dto1
{
    public string Something { get; set; }
    public IList Data { get; set; } // Contans a list of Dto2 objects
}

public class Dto2
{
    public string Something { get; set; }
    public IList Data { get; set; } // Contans a list of Dto3 objects
}

public class Dto3
{
    public string Something { get; set; }
}

...
StiOptions.Dictionary.BusinessObjects.MaxLevel = 5;
stiReport.RegData("MyData", new ArrayList
{
    new Dto1
    {
        Something = "1",
        Data = new ArrayList
        {
            new Dto2
            {
                Something = "2",
                Data = new ArrayList
                {
                    new Dto3
                    {
                        Something = "3"
                    }
                }
            }
        }
    }
});
...
...then I only see the DataSets for Dto1 and Dto2 in the report designers dictionary (MyData and MyData_Data).

Is this a limitation of the Demo version? (Maybe it's time to buy a full version :-)

And another questions: Is it possible to control the name of the a datasources generated from the bussiness object graph and which properties should be visible somehow? May via attributes?

Thx!
s/MikeT/Tobias/
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

More than two levels of BussinessObjects

Post by Edward »

Hi, Mike.

Please let us know the version number you are using.

Yes, you can set [Browsable(true)] attribute for those properties and they will be visible.

Thank you.
Tobias Grimm
Posts: 19
Joined: Tue Oct 23, 2007 9:16 am
Location: Germany

More than two levels of BussinessObjects

Post by Tobias Grimm »

It's 2008.2, downloaded a week ago.

[UPDATE]: The exact version number is 2008.2.300
s/MikeT/Tobias/
Tobias Grimm
Posts: 19
Joined: Tue Oct 23, 2007 9:16 am
Location: Germany

More than two levels of BussinessObjects

Post by Tobias Grimm »

With [Browsable(true)] the property disappears, but the child relation as well.

What I would like to do, is to hide the Data property from the above example, while still keeping the master/detail relationship that this property introduces.
s/MikeT/Tobias/
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

More than two levels of BussinessObjects

Post by Vital »

Hello Mike,
MikeT wrote:Hi!
When using a nested list of DTO's as the data source like this:
Problem fixed. Patch will be available in build from 1 Dec.
What I would like to do, is to hide the Data property from the above example, while still keeping the master/detail relationship that this property introduces.
We have added static property StiOptions.Dictionary.BusinessObjects.AllowUseDataColumn. Please set it to false.

Thank you.
Tobias Grimm
Posts: 19
Joined: Tue Oct 23, 2007 9:16 am
Location: Germany

More than two levels of BussinessObjects

Post by Tobias Grimm »

Thanks a million! I'm looking forward to testing it.
s/MikeT/Tobias/
Tobias Grimm
Posts: 19
Joined: Tue Oct 23, 2007 9:16 am
Location: Germany

More than two levels of BussinessObjects

Post by Tobias Grimm »

Vital wrote:
What I would like to do, is to hide the Data property from the above example, while still keeping the master/detail relationship that this property introduces.
We have added static property StiOptions.Dictionary.BusinessObjects.AllowUseDataColumn. Please set it to false.
We bought a licence yesterday, so I'm no longer running the demo version.
I've updated 2008.2 with the pre-release form 1 Dec.

Setting StiOptions.Dictionary.BusinessObjects.AllowUseDataColumn=false doesn't seem to do anything. I still see the list properties of my business objects in the designers dictionary.
s/MikeT/Tobias/
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

More than two levels of BussinessObjects

Post by Edward »

Hello, Mike.

Congratulations! We are glad to see you among our registered customers.

Please send a request to support[at]stimulsoft.com then with a brief explanation of the issue you are facing right now.

Thank you.
Tobias Grimm
Posts: 19
Joined: Tue Oct 23, 2007 9:16 am
Location: Germany

More than two levels of BussinessObjects

Post by Tobias Grimm »

Edward wrote:Hello, Mike.
Please send a request to support[at]stimulsoft.com then with a brief explanation of the issue you are facing right now.
Thank you.
Ok, done.

BTW: MikeT is just a strange username, because "Tobias" wasn't available, which is my real name.
s/MikeT/Tobias/
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

More than two levels of BussinessObjects

Post by Edward »

Hi Tobias.

Thank you for the files and explanation.

We are on the way to find a solution for you.

We will send you an e-mail and post a message in this topic when it is available.

Thank you.
Post Reply