Business object contain business object with same name

Stimulsoft Reports.WPF discussion
Post Reply
Niqu
Posts: 81
Joined: Wed Aug 08, 2012 9:08 am

Business object contain business object with same name

Post by Niqu »

Hello.

I am using business object and i have a bit problem.
For example:
I have object "a_name" and this object contain object "a_name" (this are two different object with different type, just have same name).
Is it possible to add this object? When i am trying to add this i got error:
"The error of compilation
The error of compilation is found in the 'Report' report:
'a_nameBusinessObject': member names cannot be the same as their enclosing type"
I understand this error, but don't know how to fix it. I tried adding allias to both object, but it didn't help.

If it metter i don't need full object, just some fields from it (e.g. a_name.a_name.name, a_name.a_name.description, etc.). Maybe is it possible to add just this few field from a_name.a_name to a_name? I tried but i don't know how exactly do this.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Business object contain business object with same name

Post by HighAley »

Hello.

Unfortunately, it's impossible now to add Business object which contain business object with the same name. This problem is in our to-do list.
We will work on it after release.

Thank you.
Post Reply