Page 1 of 2

More than two levels of BussinessObjects

Posted: Tue Nov 25, 2008 8:53 am
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!

More than two levels of BussinessObjects

Posted: Tue Nov 25, 2008 1:19 pm
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.

More than two levels of BussinessObjects

Posted: Wed Nov 26, 2008 1:18 am
by Tobias Grimm
It's 2008.2, downloaded a week ago.

[UPDATE]: The exact version number is 2008.2.300

More than two levels of BussinessObjects

Posted: Wed Nov 26, 2008 6:37 am
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.

More than two levels of BussinessObjects

Posted: Fri Nov 28, 2008 1:13 am
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.

More than two levels of BussinessObjects

Posted: Fri Nov 28, 2008 4:34 am
by Tobias Grimm
Thanks a million! I'm looking forward to testing it.

More than two levels of BussinessObjects

Posted: Tue Dec 02, 2008 5:45 am
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.

More than two levels of BussinessObjects

Posted: Tue Dec 02, 2008 8:32 am
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.

More than two levels of BussinessObjects

Posted: Tue Dec 02, 2008 11:15 am
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.

More than two levels of BussinessObjects

Posted: Wed Dec 03, 2008 7:28 am
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.