on 06-08-2019 11:43 AM
Hello everyone,
I'm using a sap.ui.table.Table with 2 columns to display products like this:
<Table id="myTab"
rows="model>/ProductSet"
title="Products">
<columns>
<Column width="4rem">
<m:Label text="ProductId" />
<template>
<m:Label text="{model>ProductID}" visible="{model>labelFlag}"/>
<m:Button text="{model>ProductID}" visible="{model>buttonFlag}"/>
</template>
</Column>
<Column width="4rem">
<m:Label text="Product Category" />
<template>
<m:Label text="{model>ProductCat}" visible="{model>labelFlag}"/>
</template>
</Column>
</columns>
</Table>
I want that the ProductId will be displayed either in Button or in Label form but it does not work. I found this topic Dynamic Template in forum but I can not figure it out how can I use this in XML-View. Could someone help me please.
Thanks and regards,
T.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.