Page 1 of 1

BusinessObject Relations

Posted: Wed Feb 08, 2012 10:49 am
by AlexN
Hello,

i'm using a Business Object named Context with this relations:
Context : Employee = * : 1
Employee : Customer = * : 1

Know i have the text "{Context.Employee.Customer.Name}". When i register only one object to the Report it works fine, but with two or more objects i have the problem, that all objects have the same customer.name - from the first object.

Am I doing something wrong or is this a bug?

Thank you for your help!

BusinessObject Relations

Posted: Thu Feb 09, 2012 9:42 am
by HighAley
Hello.
AlexN wrote:i'm using a Business Object named Context with this relations:
Context : Employee = * : 1
Employee : Customer = * : 1

Know i have the text "{Context.Employee.Customer.Name}". When i register only one object to the Report it works fine, but with two or more objects i have the problem, that all objects have the same customer.name - from the first object.

Am I doing something wrong or is this a bug?

Thank you for your help!
You should run next method after registering Business Object

Code: Select all

rep.Dictionary.SynchronizeBusinessObjects(3);
3 is a nested level.

Thank you.

BusinessObject Relations

Posted: Fri Feb 10, 2012 4:52 am
by AlexN
When I run this method without nested level nothing happens, but with nested level an error appers:
"user-defined type : member names cannot be the same as their enclosing type "
And also i dont know the nested level of the businessobjects because i use the same command for different reports with diffrent nested levels.
Thank you!

BusinessObject Relations

Posted: Fri Feb 10, 2012 8:36 am
by HighAley
Hello.
AlexN wrote:When I run this method without nested level nothing happens, but with nested level an error appers:
"user-defined type : member names cannot be the same as their enclosing type "
And also i dont know the nested level of the businessobjects because i use the same command for different reports with diffrent nested levels.
Please, send a sample project which reproduce your issue for analysis.

Thank you.

BusinessObject Relations

Posted: Wed Feb 22, 2012 6:40 am
by AlexN
Problem solved, I must use a Databand for each relation instead of one global.

BusinessObject Relations

Posted: Thu Feb 23, 2012 7:07 am
by Andrew
Great!

Have a good day!
Thank you.