FoundsetGrid button action problem

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

FoundsetGrid button action problem

Postby maria.kyselova » Tue Apr 16, 2013 4:06 am

Hi All,

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?
Cheers,
Maria
maria.kyselova
 
Posts: 172
Joined: Thu Aug 09, 2012 12:56 am

Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: Google [Bot] and 7 guests