Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Triggers & Validations

Triggers & Validations

From: William O'Neill <wfoneill_at_mindspring.com>
Date: Thu, 21 Jun 2001 19:38:18 -0700
Message-ID: <9gu0ko$f4d$1@slb2.atl.mindspring.net>

Am using Powerbuilder, v6.5.1 and Oracle 8.1.6 on WINNT. Would like to create a 'Before Insert' or 'Update' trigger on a particular table, and in this trigger validate 7 fields from the database. My question: if a validation fails(lets say, the first 3 are fine, but the 4th errors), then, I would like to stop the further processing of the trigger, and if possible, return an error message to the user, telling him where the failure was. Is this possible? A colleague suggested that I couldn't code in the trigger a Messagebox(from Powerbuilder) with an appropriate message, because at this point(the middle of a trigger) I was in the Oracle environment. What do you think? Received on Thu Jun 21 2001 - 21:38:18 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US