Skip to Content
0

Trying to build a vehicle key using 6 combo boxes in sapui5 application

Apr 25 at 06:05 PM

65

avatar image

Hi I have 5 combo box such as "Make" "Model" "Primary Fuel" "Secondary Fuel" "Body Type" which builds a vehicle key. Now all the combo boxes are dependent on each other .means if i select Make first then all other combo box gets filtered and the combo box shows all the respective fields . Now there is a possibility that the user can select any f the field in any order at first and the rest of the combo box should be populated.

Please note : I have all the vehicle data in json format and I am building individual arrays to populate each combo box.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Sharath M G Apr 25 at 06:50 PM
0

subscribe all control event( change) to one function. Pick the control and selection and use a case statement to load rest of fields accordingly.

Initial load all select independently

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Could you please elaborate . I added 2 methods (1 to pick which combobox selected and second to populate) But I am facing problem while populating the dropdown on selection .

0

select 1 - change: populateOnChange(oEvent)

select 2 - change: populateOnChange(oEvent)

select 3 - change: populateOnChange(oEvent)

populateOnChange:function(oEvent){

// Identify the control in which user clicked/selected

case:

control 1: // get data for rest and load them

control 2: // similar to above

control 3: // similar to above

}

0