iSpiderman
6 Jul 2009, 4:09 AM
I am struggling what seems to me like something that should be very easy.
I have a combobox and a listener attached to it to change the value of a cell in the same row of a grid as the combobox is.
Searching the web I couldn't find something that works... e.g. I tried:
cbAction.addListener(new ComboBoxListenerAdapter() {
public void onSelect(ComboBox comboBox, Record record, int index) {
if(index==0){
record.set("change", 0.5);
Store.commitChanges();
Store.load();
}
else {
record.set("change", 0.0);
Store.commitChanges();
Store.load();
}
}});
Could anyone help me?
Thanks in advance,
Thomas
I have a combobox and a listener attached to it to change the value of a cell in the same row of a grid as the combobox is.
Searching the web I couldn't find something that works... e.g. I tried:
cbAction.addListener(new ComboBoxListenerAdapter() {
public void onSelect(ComboBox comboBox, Record record, int index) {
if(index==0){
record.set("change", 0.5);
Store.commitChanges();
Store.load();
}
else {
record.set("change", 0.0);
Store.commitChanges();
Store.load();
}
}});
Could anyone help me?
Thanks in advance,
Thomas