Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

XML View: Binding of first element property

Hi All,

I have a label on my SAP UI5 GUI and want to make a binding of the first element of my model content and a property out of this.

It's not working in that way...

<Label xmlns="sap.m" design="Standard" text="{/MAIN_OBJECTSet('1')/PROPERTY_NAME}"

  visible="true" textAlign="Begin" textDirection="Inherit" width="200px"

  required="false" labelFor="">

  </Label>

Thanks for your support.

Best regards,

Christoph

Former Member
Former Member replied

Hi all,

I just tested again and now it's working...

<Label xmlns="sap.m" design="Standard" text="{/MAIN_OBJECTSet('1')/PROPERTY_NAME}"

  visible="true" textAlign="Begin" textDirection="Inherit" width="200px"

  required="false" labelFor="">

  </Label>

The relative path syntax depends on the used model!

Strange - but ok.

Thanks.

Best regards,

Christoph

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question