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 -> General/Other

 How to cancel a CCS operation

Print topic Send  topic

Author Message
mrincon

Posts: 14
Posted: 02/18/2004, 8:16 AM

I have a record (certificate) with a named "Button_Delete" (generated by CCS) button and an Delete operation. All is fine, but I have coded the BeforeDelete (server) event to delete other tables relates with the table on the record, after some validations. Depending on the result of validation, what I need is to cancel the Record Delete operation. I've tried returning "false" with the corresponding variable "$certificate_BeforeDelete" setting it to false, it didn't work. What I've not tried is with the redirect variable. Thanks a lot for your help
_________________
Manuel Rincon
Colombia
View profile  Send private message
DonB
Posted: 02/18/2004, 2:09 PM

The Control (e.g. grid or record) has three properties for this:
InsertAllowed, UpdateAllowed and DeleteAllowed. Set the appropriate one to
False and the operation is prevented from completing.

--
DonB

http://www.gotodon.com/ccbth


"mrincon" <mrincon@forum.codecharge> wrote in message
news:240338fd6d6a30@news.codecharge.com...
> I have a record (certificate) with a named "Button_Delete" (generated by
CCS) button and an Delete operation. All is fine, but I have coded the
BeforeDelete (server) event to delete other tables relates with the table on
the record, after some validations. Depending on the result of validation,
what I need is to cancel the Record Delete operation. I've tried returning
"false" with the corresponding variable "$certificate_BeforeDelete" setting
it to false, it didn't work. What I've not tried is with the redirect
variable. Thanks a lot for your help
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

mrincon

Posts: 14
Posted: 03/02/2004, 5:56 AM

Thanks DonB, that's the way to cancel operations.
_________________
Manuel Rincon
Colombia
View profile  Send private message
Karsten
Posted: 08/27/2004, 8:48 PM

Quote DonB:
The Control (e.g. grid or record) has three properties for this:
InsertAllowed, UpdateAllowed and DeleteAllowed. Set the appropriate one to
False and the operation is prevented from completing.

--
DonB


if used this in Before Update event $record->UpdateAllowed=false;
in PHP then when page is reloaded the Update Button disappears 8-)how to turn back on the Updatebutton when page reloads?
:-D
is there a way to globaly turn off this in my opinion nagging feature, of turn on / off buttons?


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.

MS Access to Web

Convert MS Access to Web.
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.