In my frame,i have a List and tow buton,while click button,i want to get the selected item of the list,xml like that:
<list id="lstAtt"> ....</list>
<button id="btndownload" onAction="test(#lstAtt.focusedwidget)">download</button>
<button id="btnview" onAction="test(#lstAtt.focusedwidget)">view</button>
And the java code:
if("test".equals(identifier)){
Kuix.alert(((Widget)arguments[0]).getId());
}
Test it and u will see that the button's id is alerted!
Can I get the selected listitem of the list?
The choise have value attribute,why the list have not?
I know that it will work if I user menu instead of button,but I will rather like button.