Answered
get item index at listbox/combobox by its value/export value
what is the simplest way in general case ?
only use getItemAt() for round checking ?
what is the simplest way in general case ?
only use getItemAt() for round checking ?
function getIndx(f,item,type)
{
for(var i=0;i<this.getField(f).numItems;i++)
{
if(this.getField(f).getItemAt(i,type)==item)
{return i;break}
}
}
//Call by export value
getIndx("Dropdown1",3,true)
//Call by value
getIndx("Dropdown1","A",false)
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.