Quantcast
Channel: SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 789

sapui5 input validation using conditional combobox binding.

$
0
0

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).

Steps

1.Our odata should look like this.Here iam using custom data.Set data to the core so we can access it.

dynamic1.PNG

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.

dynamic2.PNG

3.Function for binding second combobox.

dynamic3.PNG

4.You Should set initial binding of second combo by calling function passing 0 as parameter

dynamic4.PNG

 

for more information please see blog sapui5 input validation using conditional combobox binding | sap abap | sapui5 made easy


Viewing all articles
Browse latest Browse all 789

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>