Trap error messages in Forms
Hi guys!
I am using Oracle forms 10g. the validation unit of my form is set to form level.
I want to validate data when I commit the form. If they are errors in several text items I'd like to trap all the errors and their origin in a data structure like RecordGroup or PL/SQL tables. Can somebody tell me how I can identify the text field(s) that produce the error. Is there any built-in I can use to identify that for example : textfeld1 is malformed , textfield2 invalid number .....
I tried the ON-ERROR trigger and I also used WHEN-VALIDATE-ITEM but Forms still stops at the first exception it found. I cannot still trap the second one. I amdevelopping an application for a company and this is a client requirement. They want a message center. A display where they can see ALL the errors after committing the form. like:
-- List of error messages---
* Legal characters are 0-9-+E
* Date must be entered in format like DD-MM-YYY
* Not a valid month
Similar Messages
-
Display error message in forms from function "verify_function"
Hi,
We have a number of users with our own created profile attached to them.
We have enabled the 'PASSWORD_VERIFY_FUNCTION' for our own profile.
Function "verify_function" is used to validate a user's password.
In "verify_function" we have used "raise_application_error" message in case password validation fails.
Example:
raise_application_error(-20001,'Password must be minimum 8 characters in length and maximum 30 characters long');Question) "raise_application_error" displays the error message only in SQL Plus prompt. How do I display the same message from Oracle forms?.
I have used DBMS_ERROR_TEXT & DBMS_ERROR_CODE in ON-ERROR trigger. This is not displaying the error message in forms in case validation failed in "verify_function". Oracle simply clears the username/password field with a new window. We want to display the error message that occured in "verify_function".
Thanksuse the following code in validating the item, e.g when-button-pressed
begin
verify_function;
exception
when others then
message(sqlerrm);
raise form_trigger_failure;
end ;
OR
instead of writing a procedure rewrite it as a function to return 1 if password is correct or 0 if password is wrong
Regards
Jihad -
Error message about forms when ID exported PDF is opened in Reader
I'm using ID CS2.
Has anyone successfully made navigation buttons on an exported PDF that doesn't produce an error message about forms when opened in Adobe Reader?
There's an Adobe page about this that says it's caused by having a stroke too near a link field, but I can't seem to avoid the message if I place more than one button anywhere on a page. I've spent a lot of time playing with this and can't seem to find a workaround.
Am I a sucker? Is anyone else trying to use this function other than me? It seemed like the perfect solution to this project I produced and now whenever a user opens the PDF they are greeted with a confusing message that has absolutely nothing to do with the functionality of the document.Well, everything in those PDFs were form fields. You can make form fields in Acrobat - and then you can right-click on 'em and change their appearance, whether or not they'll accept rich text input, whether or not they'll scroll, and so on. It could also be done in LiveCycle Designer, for what it's worth. I wrote a now-obsolete post about this in response to yours before Mike showed up with this video.
Probably most of your work on your designs in InDesign would need to be trashed; you'd need to rebuild the whole thing in Acrobat or LiveCycle. I have to say that, unless your targeted documents are extremely simple, that this is one of the worst document translation workflows I've ever seen in the last fifteen years. It might work - I'm trying to keep an open mind, here - but if you have any non-Latin-script languages in your target list, or if print reproduction is what you're after, or if you're expecting tracking revisions to the translations to be anything but a nightmare, I would suggest that you test this method inside and out before progressing any further. -
How to send error message to forms from Database Trigger
Hi, Please help me to send error message to forms from Database Trigger?
RgDs,
Madesh.R.MYou are correct, the On-Error trigger is a Forms trigger. However, if your Form is going to display the error generated by the database stored procedure or trigger - you might not see the database error in your Form unless you check the DBMS_ERROR_CODE in the On-Error trigger and manually display the Error Code and associated Text. I've see this happen with a co-worker. The Form she was working on was based on a table with an Before-Insert trigger. Because she was not explicitely handling the error from the Before-Insert trigger in the Forms On-Error trigger, her Form appeared to halt for no reason at all. Once she added code to the On-Error trigger in the Form to handle the DBMS_ERROR_CODE, she discovered the trigger was producing an error and was able to show the error to the user in the On-Error trigger.
I understand the desire to keep as much as possbile in the database, but with that comes some extra coding in your Forms to handle this. This extra coding could easily be placed in a Forms Library, attached to a Form and called in the On-Error trigger. Your code could look like this:
DECLARE
/*This example assumes you have an Alert defined
in your Form called: 'ERROR' */
al_id ALERT;
al_text VARCHAR2(200); /* Max text of a Forms Alert message*/
al_btn NUMBER;
BEGIN
IF DBMS_ERROR_CODE != 0 THEN
/* Error code is ORA-00000 Normal Successful completion
So only handle non-zero errors */
al_text := DBMS_ERROR_CODE||':'||DBMS_ERROR_TEXT;
al_id := Find_Alert('ERROR');
set_alert_property(al_id, alert_message_text, al_text);
al_btn := show_alert(al_id);
END IF;
END;Your original question was "How to send error message to forms from Database Trigger?" The answer is you don't because Forms already gets the database error code and database message through the Forms DBMS_ERROR_CODE and DBMS_ERROR_TEXT functions. Look these up in the Forms help and it should clear things up for you.
Craig...
Edited by: CraigB on Jun 14, 2010 4:49 PM
Edited by: CraigB on Jun 14, 2010 4:49 PM
Edited by: CraigB on Jun 14, 2010 4:50 PM
Edited by: CraigB on Jun 14, 2010 4:51 PM
Edited by: CraigB on Jun 14, 2010 4:51 PM -
Trapping exceptions/error messages on form based on procedure
I am trying to display meaningful error messages when various exceptions arise. I have created a form based on a procedure and the procedure works and returns an exception where I want it.
I have been trying to use the PL/SQL Button event handler to return an error message to the user, but have not succeeded. I have tried:
doSubmit;
exception
when others then
p_session.set_value(
p_block_name => 'DEFAULT',
p_attribute_name => '_STATUS',
p_value => 'my error message';
(I have run this code both with a return at the end and not.)
This runs, but this return a page that says:
Error: WWV-0000.
(It does not display 'my error message'.)
I have also tried, from the Portal FAQs:
doSubmit;
exception
when others then
wwa_app_module.set_target('myschema.MY_ERRORS.SHOW?p_arg_names=p_errcode&p_arg_values=-1',
'GO');
where my_errors is a dynamic page that displays an error message when you pass it a value, in this case, -1.
I get the following error message from this code:
PLS-00201: identifier 'WWA_APP_MODULE.SET_TARGET' must be declared
I did find some discussions on problems with exceptions when you have a form based on a procedure, but these were from 2001. Any help with this or directions to documentation would be greatly appreciated.I worked out one answer: the code provided by Oracle for the second example omitted the portal schema qualifier on the wwa_app_module. It should be (for 10g release 2, at least)
PORTAL.wwa_app_module.set_target('myschema.MY_ERRORS.SHOW?p_arg_names=p_errcode&p_arg_values=-1',
^^^^^^^^^^
'GO');
This worked, and returned the custom error message.
I still can't figure out why the p_session.set_value returns an error message that's just WWV-0000, but I would like to. Any help, even just what page in what document to look at would be appreciated. -
Error Message with Form Sending
Hi there,
My form is working fine and the PHP is fully functional,
however I get this error message once the form has been submitted.
Error: Error #2101: The String passed to
URLVariables.decode() must be a URL-encoded query string containing
name/value pairs.
at Error$/throwError()
at flash.net::URLVariables/decode()
at flash.net::URLVariables$iinit()
at
flash.net::URLLoader/flash.net:URLLoader::onComplete()
Does anyone know what this means?
Here is my function that sends the message
function sendMessage(event:MouseEvent):void
var contactVariables:URLVariables = new URLVariables();
contactVariables.custName = textName.text;
contactVariables.custEmail = textEmail.text;
contactVariables.custPhone = textPhone.text;
contactVariables.custSubject = textSubject.text;
contactVariables.custMessage = textMessage.text;
var postMessage:URLRequest = new
URLRequest("mailContact.php");
postMessage.data = contactVariables;
postMessage.method = URLRequestMethod.POST;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.load(postMessage);
gotoAndStop(2);
As mentioned before, my form does work fine. Anyone know what
the problem could be??
Thanks
CMOk ive figured out that Flash does not like the '&' sign
when data is sent back to it as a string. The thing that I dont get
is that my PHP script does NOT send the data back to flash. Why oh
why is this message being displayed?
Also ive discovered that on some machines it does not display
the error at all. I just don't get it. Anyone had this problem
before?
Thanks
CM -
hi all,
I have a 6i form which generate data into excel, I have migrated with in 10g, configure Webutil, attach webutil in form, create object group by webutil.olb, replace all ole2 with Client_ole2.
there is no problem in compile time but when I run that form and Click on Generate button then it show below message.
oracle.forms.webutil.ole.OleFunctions bean not found.
CLIENT_OLE2.create_obj will not work
please helpHi BaiG,
thanks for your reply, I have done Step 7 successfully and start step 8.
I was following your step no. 8 (below Step)
8. Sign Webutil JAR files by running these following commands Make sure Form Builder is Closed
"C:\DevSuiteHome_1\forms\webutil>sign_webutil.bat c:\DevSuiteHome_1\forms\java\frmwebutil.jar"
"C:\DevSuiteHome_1\forms\webutil>sign_webutil.bat c:\DevSuiteHome_1\forms\java\jacob.jar"
But when I do that step on my Dos Prompt then it show below message and run.
D:\DevSuiteHome_1\forms\webutil>sign_webutil.bat d:\devsuitehome_1\forms\java\frmwebutil.jar
Generating a self signing certificate for key=webutil2...
keytool error: java.lang.Exception: Key pair not generated, alias <webutil2> already exists
There were warnings or errors while generating a self signing certificate. Please review them.
Backing up d:\devsuitehome_1\forms\java\frmwebutil.jar as d:\devsuitehome_1\forms\java\frmwebutil.jar.old...
1 file(s) copied.
Signing d:\devsuitehome_1\forms\java\frmwebutil.jar using key=webutil2...
'jarsigner' is not recognized as an internal or external command,
operable program or batch file.
There were warnings or errors while signing the jar. Please review them.
D:\DevSuiteHome_1\forms\webutil>sign_webutil.bat d:\devsuitehome\forms\java\jacob.jar
The given jar file d:\devsuitehome\forms\java\jacob.jar does not exist.
D:\DevSuiteHome_1\forms\webutil>sign_webutil.bat d:\devsuitehome_1\forms\java\jacob.jar
Generating a self signing certificate for key=webutil2...
keytool error: java.lang.Exception: Key pair not generated, alias <webutil2> already exists
There were warnings or errors while generating a self signing certificate. Please review them.
Backing up d:\devsuitehome_1\forms\java\jacob.jar as d:\devsuitehome_1\forms\java\jacob.jar.old...
1 file(s) copied.
Signing d:\devsuitehome_1\forms\java\jacob.jar using key=webutil2...
'jarsigner' is not recognized as an internal or external command,
operable program or batch file.
There were warnings or errors while signing the jar. Please review them.
Can you please tell me, how can I solve that problem. -
I have a feb form that has a 28 save limit. When users save the form and return to submitt them they get a error message that says the form has expired or has been submitted. The form is open and it was not submitted. Any thoughts.
Form deadline is tomorrow and people are getting angry when I tell them to recreate the form.Hi;
Can you forward me any of the emails from your users with their saved link that is not working and we can look into it?
Send to [email protected]
Thanks,
Josh -
This is the error message I keep getting.
Parse error: parse error, unexpected T_STRING in
/home/ehryckgi/public_html/contact.php on line 13
Here is the code I am using please help.
<?php
$your_company = $_GET['company'];
$your_name = $_GET['name'];
$your_phone = $_GET['phone'];
$your_email = $_GET['email'];
$your_message = $_GET['message'];
$recipient_mail = "[email protected]";
$subject - "from " . $Your_Email;
$headers = "From: " . $Your_Name . " <" . $Your_Email .
'>\n";
$headers = 'Content-type: text/html; charset=iso-8859-1';
$content = "<html><head><title>Contact
letter</title></head><body><br>";
$content .= "<Company: <b>" . $your_company .
"</b><br>";
$content .= "<Name: <b>" . $your_name .
"</b><br>";
$content .= "<Phone: <b>" . $your_phone .
"</b><br>";
$content .= "<E-mail: <b>" . $your_email .
"</b><br><hr><br>";
$content .= $your_message;
$content .= "<br></body></html>";
mail($recipient_email,$subject,$content,$headers);
?>
<html><title>Contact</title>
<body bgcolor="#282E2C">
<div align="center"
style="margin-top:60px;color:#FFFFFF:font-size:11px;font-family:tahoma;font-weight:bold")
Your message was sent. Thank you.
</div>
</body>
</html>
<script>resizeT(300, 300)</script>On Wed, 20 Sep 2006 07:34:28 +0000 (UTC), "miketman"
<[email protected]> wrote:
> $subject - "from " . $Your_Email;
> $headers = "From: " . $Your_Name . " <" . $Your_Email
. '>\n";
> $headers = 'Content-type: text/html;
charset=iso-8859-1';
$subject = "from " . $Your_Email;
$headers = "From: " . $Your_Name . " <" . $Your_Email .
">\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1';
You may want to look into e-mail injection:
http://tinyurl.com/pnp59
Gary -
Error message with forms 6i and OAS
Hello,
I 'm executing an applet (forms6i&OAS), while executing http://mycomputer:8001/web_html/mybase
i have the error:
keyconfailbundle oracle.forms.engine
runformbundle exception
java.lang.illegal argument exception: unknown format type...
can u please help
thnaks in advance
the applet code is the following
<HTML>
<HEAD><TITLET>titlz</TITLE></HEAD>
<BODY >
<APPLET CODEBASE="/web_frms/"
CODE="oracle.forms.engine.Main"
ARCHIVE="f60all.jar"
WIDTH="750"
HEIGHT="700">
<PARAM NAME="serverPort" VALUE="9000">
<PARAM NAME="serverHost" VALUE="mycomputer">
<PARAM NAME="serverArgs"
VALUE="module=d:\Direc\pic userid=scott/tiger@inter">
</APPLET>
</BODY>
</HTML>You will need to startup the database before you can run any sql command.
-
Hnadling sql error messages in forms
Hi there,
I have a multi block application. I have a check constraint in the database which checks for value > 0 and not null.
Now in the form if i try to insert/update a null into the column, i get FRM-40735 Onerror raised unhandled exception. When i click on Display error it shows the constraint violated. I want to show the constraint when user clicks on save button i.e commits form.
In the on error trigger, both block and form level i have
DECLARE
lv_errcod NUMBER := ERROR_CODE;
lv_errtyp VARCHAR2(300) := ERROR_TYPE;
lv_errtxt VARCHAR2(800) := ERROR_TEXT;
BEGIN
if lv_errcod = 40509 or 40508 then
message(' bad update');
else
Message(lv_errtyp||'-'||to_char(lv_errcod)||': '||lv_errtxt);
Raise form_trigger_failure;
end if;
END;
I dunno why i get unhandled exception.
Any help is appreciated.
ThanksI'm not sure what your question is but if it's how to get the same error as
display error, then put in:
display_error in an on_error trigger on the block(s):
for example on_error trigger:
declare
errnum number := ERROR_CODE;
errtxt varchar2(80) := ERROR_TEXT;
errtype varchar2(3) := ERROR_TYPE;
field_name varchar2(30);
begin
field_name := substr(:system.trigger_field,instr(:system.trigger_field,'.') + 1);
mess( 'ERROR ' || field_name || ': ' ||errtxt);
display_error;
raise form_trigger_failure;
end;
**** mess is a routine I include for which you need to define an alert of style NOTE.
PROCEDURE mess (mymess varchar2) is
alert_value number;
BEGIN
set_alert_property('DATA_ALERT',ALERT_MESSAGE_TEXT,
mymess);
synchronize;
bell;
alert_value := SHOW_ALERT('DATA_ALERT');
END; -
Browser Error Message from Forms when Published
I am using JotForms in my site and when published the forms generate the following browser error: MuseJSAssert:Error calling selector function. Object doesn't support this property or function.
Hello,
Are you able to see the error when you preview it in a Browser or when you export the site as HTML on your local machine or is it after the upload?
Did you try deleting and reinserting the code from Jotforms into Muse?
Could you please provide us URL of the site where we can check the issue?
Regards,
Sachin -
Raise_application_error is not displaying error message in my form
Hi,
I have created one procedure in order to display the error message in front end forms.But which is not display the error message in my form when call the procedure.
Please refer the code.
BEGIN
IF C_ERR%ISOPEN THEN
CLOSE C_ERR;
END IF;
OPEN C_ERR;
FETCH C_ERR INTO M_ERR_ARB_DESC;
CLOSE C_ERR;
RAISE_APPLICATION_ERROR(-20001,P_ERROR_CODE||' - '||M_ERR_ARB_DESC);
END;
Thanks & advance
Regards
MaranHi,
-------form program unit------
PROCEDURE RAISE_APP_ERR(P_ERR_CODE NUMBER) IS
alert_button NUMBER;
Raise_Exception EXCEPTION;
PRAGMA EXCEPTION_INIT(Raise_Exception, -20001);
BEGIN
--- called backend procedure
PRC_RAISE_APPLICATION(P_ERR_CODE);
EXCEPTION
WHEN Raise_Exception THEN
alert_button := SHOW_ALERT('raise_alert');
If alert_button = ALERT_BUTTON1 Then
Raise FORM_TRIGGER_FAILURE;
End If;
END;
---------- db proc----
CREATE OR REPLACE PROCEDURE PRC_RAISE_APPLICATION(P_ERROR_CODE IN HRM_ERR_CODE.HEC_ERR_CODE%TYPE
) AS
CURSOR C_ERR IS
SELECT HEC_ERR_ARB_DESC
FROM HRM_ERR_CODE
WHERE HEC_ERR_CODE = P_ERROR_CODE;
M_ERR_ARB_DESC HRM_ERR_CODE.HEC_ERR_ARB_DESC%TYPE;
BEGIN
IF C_ERR%ISOPEN THEN
CLOSE C_ERR;
END IF;
OPEN C_ERR;
FETCH C_ERR INTO M_ERR_ARB_DESC;
IF C_ERR%NOTFOUND THEN
M_ERR_ARB_DESC := 'UNKNOWN ERROR ';
END IF;
CLOSE C_ERR;
RAISE_APPLICATION_ERROR (-20001, P_ERROR_CODE||' - '||M_ERR_ARB_DESC);
EXCEPTION
WHEN NO_DATA_FOUND THEN
RAISE_APPLICATION_ERROR (-20001, P_ERROR_CODE||'-'||'UNKNOWN ERROR ');
END ;
I tried the same but still i am not getting error message in Forms. -
Display error message in SD user exit
Hi,
I want to display an error message in FORM USEREXIT_CHECK_VBAP. (Include MV45AFZB)
Afterwards, the user should be able to correct the wrong values, but the fields are locked because of the error message. How can I keep the relevant fields open?
Thanks in advance
RolandHi,
Instead of giving an error message...Probably give warning message..
If you give error message..It will lock the entries..
Thanks,
Naren -
Getting Error Message When Duplicating Fields
I am using Acrobat X Pro, ver 10.1.4 to edit an existing Acrobat (non LiveCycle) form. My computer is running Windows XP, Service Pack 3.
There are three fields on my form that I want to select and duplicate multiple times (11 times down and 4 times across). The fields are one check box field and two text fields. I've used this method in the past, and nevr had any problems:
1. Click "Tools" > "Forms" > Edit
2. Select the fields by lassoing them with the cursor
3. Right click and choose "Place multiple fields"
When I do the above steps, I get this error message: "Cannot create multiple copies of this selection.One or more fields in the selection have duplicates in this form."
However, if I multiple select the three fields using the fields panel on the right side of the screen and then right click and choose "Place multiple fields", I do not get the error message and forms are duplicated as expected.
I played around with this a bit and found that when the first method fails, if I remove one specific text field from the group of three fields, the "Place multiple fields" functionality works on the remaining two fields. If I add a third, completely new and unique text field to the group of three fields, I get the error message again.
What am I doing wrong where one method works and the other one does not?What error message?
Are you sure that the network is really public?
Maybe you are looking for
-
HP touchsmart applicatio​n download for Windows 7 Home Premium 64
I have installed a Windows 7 Home Premium 64 on my HP TouchSmart IQ846 Desktop PC. Since i am not eligible for Windows 7 upgrade from HP, I would appreciate if you could provide the link to download the complete touchsmart application. I do not want
-
Change default save file type to gif
I've seen people submit some solutions but it requires changing codes of the files.... is there a simpler way to do it? I don't understand why it's saving as a jpg file... the older versions used gif as the default for save as web...
-
Dear All, I have scoured these user posts to check to see what may be wrong - why labview isnt recognizing my servocube (and thus not moving my stage) so I have checked 1. the serial number is in fact the same serial number as on the APT gui interfac
-
My laptop screen is glitching and it becomes green with lines
THe screen when is moved flickers and the screen turns green with lines. And the laptop will freeze unable to do anything. Then when I shut it off and restart it makes these 3 beeping noises then stops and does these noises again. it is a bad problem
-
How do I get back to my older os. Phone next to useless now since I updated to7.1
How do I get my old operating system back. Phone is next to useless now. Hotspot fails, phones people, contacts are there that I did not put in. Starts facetime automatically. Ready to give up on appleproducts