recursive object

Stimulsoft Reports.Flex discussion
sofiane
Posts: 43
Joined: Fri Jun 17, 2011 8:33 am
Location: france

recursive object

Post 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




HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

recursive object

Post 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.
sofiane
Posts: 43
Joined: Fri Jun 17, 2011 8:33 am
Location: france

recursive object

Post by sofiane »

Hello,

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

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

recursive object

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

recursive object

Post 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.
sofiane
Posts: 43
Joined: Fri Jun 17, 2011 8:33 am
Location: france

recursive object

Post 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

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

recursive object

Post by Alex K. »

Hello,

Please send us a sample project which reproduces the issue.

Thank you.
sofiane
Posts: 43
Joined: Fri Jun 17, 2011 8:33 am
Location: france

recursive object

Post by sofiane »

This is a sample example which reproduce the issue
Thank you
Attachments
1802.WebSiteSample.rar
(5.84 KiB) Downloaded 296 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

recursive object

Post 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.
Attachments
1806.Untitled.png
1806.Untitled.png (14.93 KiB) Viewed 4876 times
sofiane
Posts: 43
Joined: Fri Jun 17, 2011 8:33 am
Location: france

recursive object

Post by sofiane »

I have this error
Image


the version used :



Image
Locked