What we are going to do is simple.We have two comboboxes.Based on first combobox value second combobox values should change.ie when value changes second combobox binding should change(dynamic binding).
1.Our odata should look like this.Here iam using custom data.Set data to the core so we can access it.
2.Create first combobox and bind data to it.Here is the tricky part.In the selectionchange event of combobox call a function for binding the secondcombo passing the selected key as parameter.
3.Function for binding second combobox.
4.You Should set initial binding of second combo by calling function passing 0 as parameter
sharing sample code