Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Delete Row(implement the delete method row.)
Delete Row [message #1642115] Sat, 28 February 2015 23:45 Go to next message
Santo Mota is currently offline Santo MotaFriend
Messages: 63
Registered: July 2013
Member
Hi expert, i trying to create a delete method.
In the form handler there isn't a delete handler.

https://www.dropbox.com/s/syv2dugavbq0n50/formhandler.PNG?dl=0

I dont know if its ok to use IPersonService service = SERVICES.getService(IPersonService.class); inside the table page.

Should I use discard method handler to delete a row?
Re: Delete Row [message #1642473 is a reply to message #1642115] Sun, 01 March 2015 04:01 Go to previous messageGo to next message
Marco Dörfliger is currently offline Marco DörfligerFriend
Messages: 46
Registered: January 2015
Member
Add a 'delete' menu to your table page with the following action:
@Override
      protected void execAction() throws ProcessingException {
        if (MessageBox.showDeleteConfirmationMessage(getTable().getNameColumn().getSelectedValue())) {
          SERVICES.getService(IPersonService.class).delete(getTable().getPersonNrColumn().getSelectedValue());
          reloadPage();
        }
      }

[Updated on: Sun, 01 March 2015 08:19]

Report message to a moderator

Re: Delete Row [message #1644327 is a reply to message #1642473] Mon, 02 March 2015 01:44 Go to previous message
Santo Mota is currently offline Santo MotaFriend
Messages: 63
Registered: July 2013
Member
That's what I need! thank you so much
Previous Topic:DataSourceSecurityFilter and RAP Client
Next Topic:Accessing Services in a Servlet
Goto Forum:
  


Current Time: Fri Apr 26 17:23:04 GMT 2024

Powered by FUDForum. Page generated in 0.03146 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top