cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5: Updating single table row binding

Former Member
0 Kudos

Hi guys,

I have a problem with my UI.

I am using a function that is returning the following structure:

In the UI I have two columns: "Organizations" and "Languages".

When I select a value in the Organization ComboBox, I load all langDesc values in the Language ComboBox (from the langList structure) on the same row.

The problem is that if I add more than one row in the table, all the values in the Language ComboBox are the same for each row and they are filled depending on the last value in the Organization ComboBox (and they should be different).

My question is: How can I get a different Languages list on each row, depending on the selected Organisation for that row.

Accepted Solutions (1)

Accepted Solutions (1)

ivan_petrov
Active Participant
0 Kudos

Hi Grigor,

It is like that, because you are using one instance of the combo box for all the rows.

Intead you should create a new instance of the combobox for each row and then you can have different values selected.

Best regards,

Ivan

Former Member
0 Kudos

Hi Ivan,

Thank you for your answer.

The problem is that I need a different binding in the Languages column for each row (depending on the selected Organization).

Best Regards,

Grigor

Qualiture
Active Contributor
0 Kudos

Can't you just simply bind to the relative path {langList} for your current row? And indeed, instantiate a new instance for your dropdown in your template.

This should definitely work

Answers (0)