Page 1 of 2

recursive object

Posted: Mon Apr 16, 2012 4:09 am
by sofiane
Hello ,

I have the class


public class MyObject
{

private string Name;
public string name
{
get
{
return Name;
}
set
{
Name = value;
}

}

private List list_Objet;
public List List_Objet
{
get
{
return list_Objet;
}
set
{
list_Objet = value;
}

}


}



I wich to use Business object correspending to this objects to be displyed


------ code C# ---------------------------------------------------------------------------------------

List listObject = new List();
MyObject myObject = new MyObject();
myObject.name = "nom1";
listObject.Add(myObject);

MyObject myObjectfils = new MyObject();
myObjectfils.name = "nomfils";
listObject.Add(myObjectfils);



lReport.RegBusinessObject("Exemple De Données", "Objects", listObject);
----------------------------------------------------------------------------------------------------------


But here are error

businessObject list: memebres names must be different of their covering type !!!!



Ca you explain me please how can I resolve this problem


Thanks





recursive object

Posted: Wed Apr 18, 2012 8:59 am
by HighAley
Hello.

The provided code is not for Stimulsoft Reports.Fx for Flex. Could you clarify, please, what product do you use?
Your code works right on the last release of Reports.Net.

Thank you.

recursive object

Posted: Wed Apr 18, 2012 9:27 am
by sofiane
Hello,

We are using : Reports.Web
Version 2012.1.1206 from Januray 2012
Flash Player : 11.1.102 for windows

Sofiane

recursive object

Posted: Fri Apr 20, 2012 7:48 am
by Alex K.
Hello,

We couldn't reproduce this bug.
Please check the last prerelease build. If the issue is still present, please send us a sample project which reproduce the issue for analysis.

Thank you.

recursive object

Posted: Fri Apr 20, 2012 7:53 am
by HighAley
Hello.

We've reproduced your problem. You should register data in the GetPreviewDataSet event of the Designer to get data on the Preview.
This is a code for this event:

Code: Select all

List listObject = new List();
MyObject myObject = new MyObject();
myObject.name = "nom1";
listObject.Add(myObject);

MyObject myObjectfils = new MyObject();
myObjectfils.name = "nomfils";
listObject.Add(myObjectfils);

e.Report.RegBusinessObject("Exemple De Données", "Objects", listObject);
Thank you.

recursive object

Posted: Fri Apr 20, 2012 8:35 am
by sofiane
Hello,

We are using Reports.Web of 12 January but the problem persite

I did register data in the GetPreviewDataSet event of the Designer, The problem is the same.

Are there relation with the old version used ?

Thanks


recursive object

Posted: Wed Apr 25, 2012 2:04 am
by Alex K.
Hello,

Please send us a sample project which reproduces the issue.

Thank you.

recursive object

Posted: Wed Apr 25, 2012 12:22 pm
by sofiane
This is a sample example which reproduce the issue
Thank you

recursive object

Posted: Thu Apr 26, 2012 9:42 am
by HighAley
Hello.
sofiane wrote:This is a sample example which reproduce the issue
We get only the error like on the image. It's normal. But no error like you have.

Thank you.

recursive object

Posted: Thu Apr 26, 2012 9:55 am
by sofiane
I have this error
Image


the version used :



Image