on 12-03-2018 7:01 AM
During binding, I see the below code in the Binding - Demo kit.
<content>
<l:VerticalLayout>
<Label class="sapUiSmallMargin" text="{i18n>address}" />
<Text class="sapUiSmallMargin"
text="{/address/street}\n{/address/zip} {/address/city}\n{/address/country}"
width="200px" />
</l:VerticalLayout>
</content>
text="{/address/street}\n{/address/zip} {/address/city}\n{/address/country}" -> This line is causing the following error.
When I code, text="{/address/street}", the application works fine. So, I believe I am doing wrong with the concatenation of the binding objects.
Hi Meghana,
This was a common issue that SAPUI5 people solved.
Just use the keyword [& # x A ;] (Together) wherever you can set a line break in an XML View. An example:
(It's not mandatory to use a width if you don't need it. It's up to you)
Documentation about the fixed issue: Text Issue
PS: It's an issue solved from version 1.56, lower version couldn't work.
Kind regards,
Jorge.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check SAPUI5 SDK
Check by setting the properties wrapping and renderWhitespace to true in your Text control.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
10 | |
8 | |
8 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.