Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Get multiple items based on drop down selected value

Hello Experts,

I have a dropdown which is bound to a list and the data is retrieved from a JSON model. Now what I want to achieve is on selection of value in the dropdown , I need to retrieve corresponding 4 values from the JSON list. Below is the code snippet for beinding :

var oListTemp = new sap.ui.core.ListItem();

        oListTemp.bindProperty("text", "projectName");

        oListTemp.bindProperty("key", "projNumber");

        oProjectsDropDown.bindItems("/projData", oListTemp);


Apart from just projectName and projNumber, I have 2 other properties whose values I need.

oProjectsDropDown.getValue(),oProjectsDropDown.getSelectedKey() - I am able to retrieve the selected value and key , but how do I retrieve other values as well depending on the corresponding selection.

Thanks & Regards,

Archana

Former Member
Not what you were looking for? View more on this topic or Ask a question