Just wondering if it's me or the bean.
I have two columns in my FoundsetGrid bean and one of them is a button with an action attached:
- Code: Select all
elements.bean.addButton(2, deleteRecord, [event], '', "media:///delete.png", '', '', false, false, true);
The function is below:
- Code: Select all
function deleteRecord(event) {
elements.bean.deleteRecord(elements.bean.getFoundset().getSelectedIndex());
elements.bean.refresh();
}
The problem is that the action is ignored most of the time.
If I start the smart client and click on my button first thing - it's ok, all working.
Click again - another record is correctly deleted.
Click the third time - nothing happens, the debugger won't even go in my action function and the record in the grid stays there.
I log out and log back into the application, click on the button: the record is gone but the button stays which doesn't make sense
Servoy Version: 7.0.1 - build 2008.
Can I do anything about it?