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



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 | ../{{}} I set a text input with value ==> 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

This one is the BEST answer!


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.



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