on 01-27-2021 4:19 PM
Hello,
I am using an Index to set the number on a title which is inside a panel. The Index is getting displayed as NaN on the UI. I am attaching the UI5 code for your reference.
<l:VerticalLayout visible="{=${PATH} === 'R'}" width="100%">
<l:Grid containerQuery="true" content="{/INFO}">
<Panel backgroundDesign="Transparent">
<headerToolbar>
<Toolbar>
<Title text="{i18n>label.billto} #{=${Index} + 1}"/> " This gets set a NaN on the UI
</Toolbar>
</headerToolbar>
<content>
<Title visible="{=${BPName}!==''}" text="{BPName}"/>
<Text visible="{=${BPAddress}!==''}"
text="{ parts: [ {path:'Index'}, {path: 'BPAddress'}, {path: 'BPCity'}]}"/>
<VBox> <HBox visible="{=${documentType}==='AB'}">
<Text text="{ parts: [ {path:'Index'},
{path: 'i18n>label.from'}, {path: 'i18n>label.to'}, {path: 'i18n>label.willpay'} ]/>
</HBox>
<HBox> <Label text="{i18n>label.paymentMethod}: "/>
<Text text="{path: 'paymentMethod'/>
</HBox>
</VBox>
</content>
</Panel>
</l:Grid>
</l:VerticalLayout>
Here is the screen shot of the output.
depend on your model structure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
65 | |
8 | |
7 | |
7 | |
6 | |
6 | |
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.