Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 11th, 2008, 05:04 PM
Newbie
 
Join Date: Jun 2008
Posts: 5
Default FRM -41039: Invalid alert ID 0

Hello everybuddy
i am trying to run this form .It is ok with the compilation but in the run time ,it is giving an error which is "FRM 41039 :Invalid Alert ID 0".The control is entering into the first if block (if mrcdcnt <> 0 then) . I am getting this error twice back to back.

Declare
chk_button number;
mrcdcnt number;
IO_ALERT ALERT :=Find_Alert('generic_alert');
BUSS_ALERT ALERT := Find_Alert('generic_alert');
Begin
mrcdcnt:=0;
select count(*) into mrcdcnt from suplr_mstr where suplr_mstr.suplrid=:BLKSUPLRMSTR.TXTSUPLRID;
-- message(mrcdcnt);

if mrcdcnt <> 0 then
message('Enter Suppliers unique identity number');
set_alert_property('IO_ALERT',title,'Primery Key Violation');
set_alert_property('IO_ALART',Alert_message_text,' Supplier`s ID number already exists');
chk_button := show_alert('IO_ALERT');
RAISE FORM_TRIGGER_FAILURE;
end if;

if not:BLKSUPLRMSTR.TXTSUPLRID > 0 then
message(:BLKSUPLRMSTR.TXTSUPLRID);
message('Enter supplier`s identity number.');
set_alert_property('BUSS_ALERT',title,'Business rule violation');
set_alert_property('BUSS_ALERT',alert_message_text ,'Supplier`s ID number should be a possitive integer');
chk_button:=show_alert('BUSS_ALERT');
RAISE FORM_TRIGGER_FAILURE;
end if;
END;

Can any one please help me.
Reply
  #2  
Old August 11th, 2008, 06:02 PM
amitpatel66's Avatar
Moderator
 
Join Date: Mar 2007
Location: India
Age: 24
Posts: 2,021
Default

Check if you have created a proper alert in the form and at correct level....ie form level or block level and proper id is assigned to an alert
Reply
  #3  
Old August 12th, 2008, 01:50 PM
Newbie
 
Join Date: Jun 2008
Posts: 5
Default

i have set the trigger in the item level.
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles