steffen baumgarten
|
Posted: 03/11/2001, 6:44 AM |
|
Hello,
I know how to delete a record from a grid by "Grid: edit"->"Record: delete".
But how is it possible to delete a row directly, without going to its
record, just with a "[del]" link next to the grid-row?
Thanks in advance for your help!
Steffen from Germany
|
|
|
Alexey Alexapolsky
|
Posted: 03/12/2001, 3:40 AM |
|
In your grid create url , that will point to a "Delete script".
in url's properties "Output" tab , specify primary key of your record.
when user clicks on this url , he'll be redirected to delete script ,
that'll delete the record and redirect you somewhere(back,for instance).
You may create this delete script in codecharge. it'll might be a "record"
page , but in form properties/events you must change open event to something
like :
ssql = "delete from items where item_id=" & getParam("item_id")
response.buffer=true
response.clear
response.redirect ("somescript.asp")
--
Regards,
Alexey
CodeCharge Support
steffen baumgarten <baumgarten@xsite.de> wrote in message
news:98g2vm$8md$1@mail.tankhill.com...
> Hello,
> I know how to delete a record from a grid by "Grid: edit"->"Record:
delete".
> But how is it possible to delete a row directly, without going to its
> record, just with a "[del]" link next to the grid-row?
>
> Thanks in advance for your help!
>
> Steffen from Germany
>
>
>
>
>
>
|
|
|
|