I have a similar question. I have 2 dropdowns and i need selectionchanged event to populate the values of the 2nd dropdown.
I was fetching both dropdown values from a servlet whose path i am giving in options property. I later tried using the listener to populate the values for the 2nd dropdown. 1st dropdown still uses the options property.
Please refer the link below, the usecase is explained here:
I have also tried with the solution provided in this thread but its not working:
function(){
var dialog = this.findParentByType('dialog');
var selectBox = dialog.findByType('selection')[1]; /*what i understood is that it is the index of the selection widget so i gave 1 which means 2nd selection node i.e city in my case */