Complex Objects

Stimulsoft Reports.NET discussion
Post Reply
gustavorocha
Posts: 2
Joined: Mon Jul 02, 2012 9:43 pm

Complex Objects

Post by gustavorocha »

Hi.

Considering I have this model:

Code: Select all

public class Master
{
    private virtual IList<Detail> details = new List<Detail>();

    public virtual Int32 Id { get; set; }
    public virtual String Description { get; set; }
    public virtual IEnumerable<Detail> Details { get { return details; } }

    public virtual void AddMyProperty(Detail item)
    {
        this.details.Add(item);
    }                                
}

public class Detail
{
    public virtual Int32 Id { get; set; }
    public virtual String Description { get; set; }
    public virtual String DetailType { get; set; }
}
My requirements are: create, customize and provide editing for my clients in my web application.

From where can I start? I Couldn't find a "business object datasource" in web designer, only in wpf designer.
How tell to my report, in development phase, on the designer, that i want to report the fields of a List<Master>?
How to provide editing for my client in my web application with this source?

Thank you.

Gustavo Rocha
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Complex Objects

Post by Alex K. »

Hello,

You can use the RegBusinessObject() method for registering your data:
report.RegBusinessObject();
report.Dictionary.SynchronizeBusinessObjects();

Thank you.
gustavorocha
Posts: 2
Joined: Mon Jul 02, 2012 9:43 pm

Re: Complex Objects

Post by gustavorocha »

Ok. this work for me.

Thank you
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Complex Objects

Post by Alex K. »

Hello,

We are always glad to help you!
Let us know if you need any additional help.

Thank you.
Post Reply