How to access attributes of a business object defined as an attribute of an other business object with an aggregation relationship in UI designer ?

1
0
-1

Hello,

I defined a Business object like this : BDO1 : name : type string emplacement : type BDO2 with aggregation relationship

BDO2 : emp_name : type string ....

I try to access emp_name of BDO2 in a form so I defined a UI variable to access BDO1 instance like femp | ../{{context.BDO1_ref.link}} I set a text input with value femp.name ==> OK it works I set a text input with value femp.emplacement.emp_name ==> KO

Is there a way to access emp_name from UI designer ? Is this a bug ? a limitation ?

1 answer

1
0
-1
This one is the BEST answer!

Hi,

what is the aggregation type? If it's lazy then the API will not return the object but a link. Change it to eager (always load related objects option in the studio) if you want to access the nested object directly.

Vincent

Comments

Submitted by joteam03 on Thu, 08/06/2015 - 17:35

It was my first error, the second one was about the contract, as i retrieve an object from an other one, I had to define the object retrieved as a complex one in the contract

Notifications