Stop Update and Insert

Hello,

I am doing some validation on the onBeforeUpate and onBeforeInsert events and I want to stop from updating/insert the record but don’t know what to use. Anyone knows? please let me know.

BRegards

Re: Stop Update and Insert

Hello sir,

There is a lot of ways to do that, one thing you can do is on event onBeforeUpdate/Insert is some validation.
for example:
using ‘if else’ clause:
if({Field} == “value”) {
sc_redir(app.php);
}

in this code will depend of some value you type the app will be reload.
As I said before, there is more than one way to do these things.

regards

Re: Stop Update and Insert

I got what wanted with the sc_error_message.

Thanks!