Skip to Content

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 25, 2018 at 06:50 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • select 1 - change: populateOnChange(oEvent)

      select 2 - change: populateOnChange(oEvent)

      select 3 - change: populateOnChange(oEvent)


      // Identify the control in which user clicked/selected


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

      control 2: // similar to above

      control 3: // similar to above