Page 1 of 1

Complex Objects

Posted: Mon Jul 02, 2012 10:01 pm
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

Re: Complex Objects

Posted: Tue Jul 03, 2012 11:47 am
by Alex K.
Hello,

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

Thank you.

Re: Complex Objects

Posted: Wed Jul 04, 2012 2:52 pm
by gustavorocha
Ok. this work for me.

Thank you

Re: Complex Objects

Posted: Thu Jul 05, 2012 5:44 am
by Alex K.
Hello,

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

Thank you.