Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

Delete Multiple rows using checkbox  RSS feed

 
jenny soft
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
I am doing delete single and multiple rows in Database using checkbox.
I got single row deletion.but i did not get multiple row deletion.
please give solution.

thanks in advance,
 
Dilshan Edirisuriya
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Report post to moderator
Originally posted by jenny soft:

I am doing delete single and multiple rows in Database using checkbox.
I got single row deletion.but i did not get multiple row deletion.
please give solution.


Can you clarify that. You have to focus on request.getParameterValues(java.lang.String) method to retrive all the checked values as I got to know your problem.
[ January 07, 2008: Message edited by: Dilshan Edirisuriya ]
 
jenny soft
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
yes, I got all the checked values using
d = request.getParameterValues("check"),while I print d it shows all the values.even i got all the values that delete only last one values.for example If i got the values anu dani jenny delete jenny alone.I can't delete other two values.
I put my code here.



 
jenny soft
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Report post to moderator
I got the answer
 
Dilshan Edirisuriya
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Report post to moderator
You have to move that sql delete query inside to for loop. I think you have done that.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
"jenny soft",
Please check your private messages.
 
noreen Burke
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Report post to moderator
is there a complete answer/ full sample to this question? I am having a very similar and is very urgent.thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65832
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Welcome to the Ranch noreen.

Here's a few tips to get you started off right.

Firstly, it's best to start a new topic with your own question rather than re-opening a long-dead topic. I'm going to close this one so you can go ahead and completely describe your issue in a new topic.

Secondly, saying things like "it's urgent" will only make people ignore your posts. Please read this for more information.

I look forward to your new post exactly describing your issue in detail.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!