CodeChargeMVP
Posts: 473
|
| Posted: 11/24/2010, 8:59 AM |
|
hI,
Sceneario:
A normal record on the top and than a grid,
the record accepts insert,update and delete,
but there�s a mistake with delete, when user clicks delete
it delete all rows from grid.
�Why?
On the function delete the sql statement is somewhat like "Delete From" etc..
I want than the user only be able to delete just the active row,
so I should add a where clause with one of the server events
�does anybody knows which one is the right?
Before Delete,Before Build Delete,Before Execute Delete etc..
and is there any handly example.
Thank you very much in advance.
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
materix
Posts: 161
|
| Posted: 01/15/2011, 5:28 PM |
|
It should not be necessary for you, to build custom code in any beforedelete server-side event. CCS ought to build this code for you.
Have you defined a primary key for the table?
|
 |
 |
CodeChargeMVP
Posts: 473
|
| Posted: 01/16/2011, 10:58 AM |
|
hi,materix
thanks for your reply, I resolved the issue re-doing the page, then everything works fine.
Sometimes CCS goes weird and the work has to be re-done.
Quote materix:
It should not be necessary for you, to build custom code in any beforedelete server-side event. CCS ought to build this code for you.
Have you defined a primary key for the table?
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
|