473,396 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.
Aug 11 '08 #1
3 23373
amitpatel66
2,367 Expert 2GB
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
Aug 11 '08 #2
i have set the trigger in the item level.
Aug 12 '08 #3
FRM -41039: Invalid alert ID 0

hi Friend,

i got the above error when missed to Define an Alert.
Solution : Forms --> Alerts --> +Create
double click on it (Property Palette)
change the attributes.

Good Day,
Bye.
Mar 21 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Robert Oschler | last post by:
If I set window.onerror to an error handler I've created, I don't see the browser error dialogs anymore but I don't see the alert() messages in my error handler pop up either. Can someone tell me...
1
by: amy | last post by:
I have a text box, after user input the value, a validate function trigered. if the value is invalid, alert display, and also set focus back to this control. The alert displays, but when the...
6
by: Jorntk | last post by:
<script language="JavaScript"> !-- function onLoad() { if( self.innerWidth < 1024 ) { self.moveTo( 0, 0 ); self.resizeTo( screen.availWidth, screen.availHeight ); }
5
by: Martin | last post by:
I have the following function in the onchange event of several text boxes. If the user enters an invalid number the alert displays. I would like to return the user to that same field after he...
2
by: Marc Castrechini | last post by:
With SmartNavigation=true a call to display a simple javascript alert returns in IE showing an "Invalid Pointer" error. Apparently when SmartNavigation is disabled then the alert works correctly....
3
by: Wayne Deleersnyder | last post by:
Hi All, I'm trying to create a function that will cause a pop-up alert to appear if dates which were chosen from a drop-down list were invalid on a page. There's 4 dates, so there's the...
10
by: dimple.nshah | last post by:
Hello, I am trying to figure out the functionality of alert in javascript. I have a form with about 5 fields. Each field has a check on whether the information entered is valid. If the user...
14
by: rashgang | last post by:
i have dynamically created checkbox which will like yahoo mail if check box selected it will highlight a row but deleteall function is not working plz chek it function doDeleteAll($objArray){ ...
21
by: rashgang | last post by:
no check box selected when i gave delete all link the error is coming <?php include "includes/connection.php"; include "includes/Functions_category.php"; include...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.