cancel
Showing results for 
Search instead for 
Did you mean: 

ComboBox Defined within a Table Not working

harikrishnan_m
Active Participant
0 Kudos

Hello Experts,

Am new to UI5 and with first app am stuck with Combox Box Value Selection. Attaching the XML View and Controller for you to correct what am doing wrong...

Here first Table will display using Odata. Then am binding 2 ComboBox to JSON. Each ComboBox depends on other fields in the table. Basically a dynamic ComboBox. Problem is am getting the values from Odata read and binding to ComboBox doesn't seems to work.

Please help.

controller.txt

xml-view.txt

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor

var oData2=that.getView().byId('Markets').getModel('Zmrkt').getData();

this won't work.

that.getView().byId('Markets')

you can set the model to the view, no need to set to specific ui element.

harikrishnan_m
Active Participant
0 Kudos

Initially binding was done without specifying ui element. Even that doesn't work.

Now i have done binding again without ui element. Still doesn' work. Any ideas? I have doubt on Combo Box Object during runtime...Do you think this one is correct?

untitled.png

Also am getting this error during loading...

During a clone operation, a template was found that neither was marked with 'templateShareable:true' nor 'templateShareable:false'. The framework won't destroy the template. This could cause errors (e.g. duplicate IDs) or memory leaks (The template is used in aggregation 'items' of object '__component0---unassigned--Market_Seg').For more information, see documentation under 'Aggregation Binding'. -

junwu
Active Contributor
0 Kudos

binding was done without specifying ui element???what is that?

i was saying setting the model with the view , not the specific ui element.