473,466 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to get the backend error/exception in forms alert at front end?

2 New Member
Hi all,

I do not have the idea how could I get the backend error/exception message into forms6i application?

I used RAISE_APPLICATION_ERROR(error_number, error_text) in DB table's trigger, I want the message in my front-end. However, I am getting the error that Oracle unable to insert and on pressing shift + F1 I am getting the message that I wrote in DB. But I want it as an alert.

and can I give yes-no type alert there?

for example

create table test1(col1 number(2));

create trigger trg_test1
before insert on test1
for each row
begin
if col1 < 0 then
raise_application_error(-20001, 'Negative value not allowed..!!');
end if;
end;

when this is done, create one form with database block for table test1 and
try to insert negative value and save the transaction. it will give message oracle error, unable to insert, but not giving the message 'Negative value not allowed..!!' more over I don't want it on display line I want that message in alert.

and let me know, if we could give yes-no type message and on that basis we could take the decision in backend.

Dilip Dafda
Aug 27 '07 #1
3 8576
debasisdas
8,127 Recognized Expert Expert
you need to trap the error number from RAISE-APPLICATION_ERROR in the frontend to get the desired output.
Aug 27 '07 #2
dilipdafda
2 New Member
you need to trap the error number from RAISE-APPLICATION_ERROR in the frontend to get the desired output.

No, its not accomplished, you didn't get my problem, I already tried the same. I am getting "unable to insert record" error, instead of that I want my error message. if I press shift + F1 then I am getting the msg. in the error box. but I want it as a normal alert that user receives.

Also check for my other questions in the query.
Aug 28 '07 #3
nramrits
18 New Member
This One Is Useful For U
Pls Write This Code Into On-error Trigger In Form Level
Message(dbms_error_code||'-'||dbms_error_text);
Message(' ');-- It Display An Ora- Errors In Forms

Or
Message(error_code||'-'||error_text);
Message(' ');-- It Display An Forms Errors
Sep 5 '07 #4

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

Similar topics

1
by: matt bourke | last post by:
Hi, Can you please tell me what the advantage is of using an access backend with a VB frontend OVER access as a frontend and backend. M
1
by: bluerocket | last post by:
I have searched this group, and am not finding the answer I am looking for -- hope you can help. I have a front-end MS Access database hooked via a MyODBC link to a MySQL database. A modified...
7
by: JMCN | last post by:
Is this possible to have the 97 users with 97 front end, 2000 users with 2000 front end, 2002 users with 2002 front end, and 2003 users with 2003 front end all linked up to an access 97 backend? ...
11
by: BillCo | last post by:
I'm using a backend that's been around for years before I joined the company. It kind of grew exponentially and has some design problems including large unused tables some temporary tables. It...
19
by: Mark 123 | last post by:
I just read at http://groups.google.com/group/microsoft.public.access.forms/browse_frm/thread/766ba7b493eacb63/8a7d5504ee848c21?lnk=st&q=migrate+access+97+to+access+2007&rnum=1#8a7d5504ee848c21...
5
by: Anns via AccessMonster.com | last post by:
My establishment has about 20 ms access db's that will be converted over (see subject). When we pull all the BE's over to SQL and the FE's on Sharepoint (.net) surely we don't have to change...
13
by: rdemyan via AccessMonster.com | last post by:
My front-end code manually links to the backend file. I was wondering what stops Access from linking to the system tables in the backend file. Is it just by virtue that they are hidden? This...
12
by: Matt.W.Stephens | last post by:
Here is the scenario. We have a database with patient case information. This database was previously solely used in Access. The problem is our users connect to this database (located in California)...
8
by: =?Utf-8?B?QWxpY2U=?= | last post by:
Sorry for reposting here but I apparantly managed to pick the wrong discussion group earlier. Here's my story: Hi all, I am developping a simple application that displays an animated weather...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
1
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
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.