WebCombo provides a method to get the selected row's object in combo.
In this topic, you will learn how to use GetSelectedRow and rowIndex methods.
To perform batch update in unbound WebCombo
- Drag a HTML button and leave the Id as it is, which is Button1.
- Double click the HTML button and add the following code in the defined Client-side event handler:
JavaScript Copy Code function Button1_onclick() { var WebCombo1 = ISGetObject("WebCombo1"); var rowObj = WebCombo1.GetSelectedRow(); var rowIndex = rowObj.rowIndex; alert("Row Index : " + rowIndex); }
- Run the project.