on 09-18-2014 1:38 PM
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
Hi Christoph,
if you are using a json model, try "{/MAIN_OBJECTSet/0/PROPERTY_NAME}" as binding path. For more information on binding paths, check OpenUI5 SDK - Demo Kit.
Regards, Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.