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 |
 |
 |
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 |
 |
 |
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 how to turn back on the Updatebutton when page reloads?

is there a way to globaly turn off this in my opinion nagging feature, of turn on / off buttons?
|
|
|
 |
|