cancel
Showing results for 
Search instead for 
Did you mean: 

Different items values of ComboBox for each row in the SAP.M.TABLE of 2 columns?

former_member213400
Active Participant
0 Kudos

Hello Folks,

I have one challenge, please find the below challenge.

Case Study: - I have one sap.m.table with editable option. In the table 4 columns are there. 4 columns asbelow,

Column 1: Input

Column 2: Button

Column 3: ComboBox1

Column 4: ComboBox2

Every row in the table will be inserted based on one button from the table toolbar.

From the event of button(Column2) Binding the ComboBox1, in ComboBox1 event I am binding ComboBox2.

Issue:

Row1:- Input value - Mat1 binding respectively

Row2:- Input value - Mat2 binding respectively

again Row3:- Input value - Mat1 binding respectively. in this scenario the moment I am binding to ComboBox1 in Row1 ComboBox1 values are erased with Row3 ComboBox1. And same as for ComboBox2(Column4).

While browsing I got one blog, but that will not work for me. I have to bind dynamically for each and every row and column.

Blog: https://blogs.sap.com/2015/03/04/sapui5-how-to-bind-to-individual-rows-in-a-table/

Kindly suggest me with your valuable inputs.

Thanks in advance. Regards, Kiran.

Fabrice
Active Participant
0 Kudos

Hi,

could you post the view and the controller files please?

If i understand well, what you want to do is :

when you change the selected value of the combobox1 in row1, the list of the combobox2 in row1 is changed but not in the other rows?

Is that right?

If yes, how are the models that you use to set the list of values for the comboboxes?

Thanks in advance

Regards

Fabrice

Accepted Solutions (0)

Answers (0)