Hi, I have a user object which is using pfc services. Now, during update, I have written my validation code in the pfc_validation()
function, and when validation does not succeed, I am returning -3
from that function. But still I am getting an error message saying - "A database error has occured.....", which means the update process is not aborting. I thought if I return -3
from the pfc_validation
function, it will stop the further update process.
Now how can I cancel the rest of the pfc_save
process if validation fails?