cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple controls under same coloumn in sap.ui.table

former_member321020
Participant
0 Kudos

Hi Experts,

Based on the type of data, multiple control( like input control, lable control, button control ) has to be displayed under same column in sap.ui.table using XML view.

for example:

1st record -> it should be label control

2nd record -> it should be input field control

3rd record -> it should be button control

The above controls are placed under same column in the table based on type of data or indicator.

how to achieve this in XML view?

Thanks

sashi

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor

in my case, I have three type of control in one of the column, i just put all there and control the visibility based on needs. it worked for me.

former_member321020
Participant
0 Kudos

Hi Jun Wu

Could you please provide code to get this. I am doing as below in xml view but its not working.Its still displaying label control without value but not input control with value.

<Column>

<Label text="Customer " />

<template>

<Input value="{data>CUSTOMER}" />

<Label text="{data>CUSTOMER}" visible="false" />

</template>

</Column>

Thanks

sashi

former_member514181
Discoverer
0 Kudos

I just encountered the same problem, and adding a wapper around the controls solved this, so basically within the template you can add a HBox, VBox, etc, and your Label and Text within.