CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 [Resolved - DELETE SERVER EVENTS]

Print topic Send  topic

Author Message
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
View profile  Send private message
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?
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.