Re: FORMS 4.5: WHEN-VALIDATE-ITEM TRIGGER

From: John Homeyard <homeyard_at_worldnet.att.net>
Date: 1996/08/06
Message-ID: <4u7jjv$796_at_mtinsc01-mgt.ops.worldnet.att.net>#1/1


Not sure what is causing this error but you may want to try this to accomplish your task.

   select cust_id into local_cust_id

     from my_table
     where cust_id = :my_block.cust_id;

-- if I found an existing customer then output message
MESSAGE ('Customer already exists'); RAISE form_trigger_failure; EXCEPTION When no_data_found THEN NULL;
  • THIS IS THE CONDITION YOU REALLY WANT!
John. Received on Tue Aug 06 1996 - 00:00:00 CEST

Original text of this message