473,785 Members | 2,801 Online
Bytes | Software Development & Data Engineering Community
+ 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_APPLICATI ON_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_applicati on_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 8607
debasisdas
8,127 Recognized Expert Expert
you need to trap the error number from RAISE-APPLICATION_ERR OR 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_ERR OR 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_er ror_code||'-'||dbms_error_t ext);
Message(' ');-- It Display An Ora- Errors In Forms

Or
Message(error_c ode||'-'||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
2353
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
1643
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 date is going into the database. Need to be able to perform calculations on the dates in order for newly added notes to show up in bold on a report.
7
2479
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? We are currently planning on upgrading workstations with either 2000, 2002, 2003. the criteria for the specific version will depend on the IT department. I would like to know if we have several different office versions will it work to have...
11
4082
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 compacts to 150Mb, but after a day it's up to 300Mb and it gros steadily from there. I need to: (a) reduce the size (b) reduce the bloat factor Apart from moving the temporary tables to front end (which can't possibly account for all of the this...
19
4348
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 that if you have a spilt db using SQL server rather than jet, the front-end's can connect to the backend SQL server over the internet. Has anyone had experience with this? We are thinking of migrating an commercially sold Access97 runtime app to...
5
3619
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 every user face, we should be able to use the same FE in as before as now on Sharepoint? ANSWER:
13
4919
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 has recently come up because I've been playing around with converting my front end to A2003 format. At some point, I had a corruption issue with a system file MSStorage something. Access kept saying it couldn't find it. When I looked in the db...
12
10619
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) from locations across a large network. California to Virginia. Naturally the east coast locations were running very slow. We decided to migrate to an Access front end with an SQL backend. The database contains several forms with multiple...
8
2671
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 .gif in a picturebox. Besides the picturebox there are only a few labels on the form. The form is called from a module. The .gif is loaded from the internet via
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9481
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10155
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10095
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8978
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5383
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
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 we have to send another system

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.