Supressing FRM:40405 no changes to save
Guy,
How do I supress the forms runtime message
FRM:40405 no changes to save, I get this message when ever I press the save button irrespective of whether the records are inserted or changed .
Abdetu wrote:
Thanks Tony for reply,
I tried this in the ON-Error
IF ERROR_TYPE = 'FRM' AND ERROR_CODE = 40405 THEN NULL;
ELSE
alert_message := message_type||'-'|| To_Char(error_code) || ': ' || error_text;
BEGIN
select msg_desc
into alert_message
from cde_message
where msg_code = temp1;
EXCEPTION
WHEN OTHERS THEN NULL;
END;
END IF;
Regards,
Abdetu..Using WHEN OTHERS THEN NULL is a huge bug in your code.
If you even gonna use when others, you always use it with RAISE FORM_TRIGGER_FAILURE, other than that you're not displaying the error messages for the rest of the errors and you're not raising FORM_TRIGGER_FAILURE.
Your code should look like this:
IF ERROR_TYPE = 'FRM' AND ERROR_CODE = 40405 THEN NULL;
ELSE
MESSAGE(ERROR_TYPE||'-'||ERROR_CODE||': '||ERROR_TEXT);
RAISE FORM_TRIGGER_FAILURE;
END IF;Tony
Similar Messages
-
How to supress FRM:40405 no changes to save
Guy,
How do I supress the forms runtime message
FRM:40405 no changes to save, I get this message when ever I press the save button irrespective of whether the records are inserted or changed .I agree that you shouldn't cover up potential problems. I didn't mean to suggest that. I think there can be valid reasons for suppressing messages sometimes.
For example, I've used :SYSTEM.MESSAGE_LEVEL := '5'; before to suppress FRM-40401 or FRM-40405 - can't remember which one, it's been a while. In my case I was using exec_sql in forms to retrieve data from a DB2 table and insert it into an Oracle table. In this case forms didn't recognize that work was actually being done and would give the FRM-40401 or 40405 error at the end of the process, even though the records had been successfully inserted. -
FRM-40405 (No Changes to apply)
When i open a form through menu and save record i am getting the message 'FRM-40405 No changes to apply'.
I am not geeting the error while running the form independently i.e not calling through menu. commit_form built is used in key-commit trigger.
I am using OAS 4.0.8 and Forms 6i with Patch 1.I think in this case, you issued a commit without actually changing any data, so the commit was not necessary. Many Times I had to do this and did not want to see this error.
What you can do to overcome this is to create a forms 'on error' trigger. Then trap the error like follows -
DECLARE
errnum NUMBER := ERROR_CODE;
errtxt VARCHAR2(80) := ERROR_TEXT;
errtyp VARCHAR2(3) := ERROR_TYPE;
BEGIN
IF errnum = 40301 THEN
Message('Your search criteria identified no matches... Try Again.');
ELSIF errnum = 40350 THEN /* no records found */
null;
ELSIF errnum = 41026 THEN /* FIELD OUTPUITING*/
Message('This field is calculated');
ELSif errnum=40401 then /* double commit somewhere */
null;
ELSif errnum=40505 then /* double commit somewhere */
null;
ELSif errnum=41050 then /* Record has been saved already */
null;
ELSIF errnum=41008 then /* Undefined Keys */
null;
ELSIF errnum=40100 then /* beyond first record */
null;
ELSIF errnum=40200 then /* field protected against update */
null;
ELSIF errnum=40352 then /* beyond last record */
endif; -
FRM-40401 No changes to save error
Hi,
I have updated one table from form by writing update statement on the when-button-pressed triger.This update statement is doing its job fine and the table is updated.but iam finding 'FRM-40401: No Changes to save 'message in my console . Please tell me why it is coming when changes are made into tables and wat should i do to avoid this . i have written on-error trigger on form level to suppress this message.What effect itcan have on my working.
Kindly take it on urgent basis.
regards,
rajeshUsually in Forms, you do not write SQL update statements to update your table. Instead, you create a base-table block, fetch the rows into the block, make your changes, and then commit. Forms automatic processing takes over and creates the update statements for you.
What you have done is bypassed the default automatic processing, and Forms is complaining. I would try to re-do the form and use a base-table block. -
How can i hide frm-40401 no changes to save
hi all,
i would like to hide frm-40401 no changes to save
i create a (form level trigger/block level) to hide a built in message
ON-MESSAGE
declare
msgnum number := message_code;
begin
IF msgnum = 40401 THEN
Message('my own message.');
end if;
end;and still message appear what can i do?
Thank's all
Edited by: Ahmed_Arafa on Jan 20, 2012 9:40 AMAhmed_Arafa wrote:
hi all,
i would like to hide frm-40401 no changes to saveCreate a form level trigger named Pre-Form
and write the following code
:SYSTEM.MESSAGE_LEVEL := 5;Hope this will help you -
FRM-40405, No Changes To Apply Message
Environment : Forms 9i, Web, 9iAS
Whenever a transaction is made, The "No changes to Apply" message is get displayed and then the transaction is applied and saved message appears.
How can i get ride to the First message?
ON-ERROR trigger containss the following code
if error_type = 'FRM' and error_code = 40405 then
null;
else
message(error_code ||':'||error_text,no_acknowledge);
end if;
Eben then, No change to Apply message Appears.This is happening for all the Forms in our Application Just a guess...
Sounds like you are running your forms from a "master form" using OPEN_FORM(form_name, ACTIVATE, NO_SESSION); This will do the commit on both the called form and the calling form (and that's where the FRM-40405 comes from). You can use OPEN_FORM(form_name, ACTIVATE, SESSION); but this will create a new session for each form being called.
Try the CALL_FORM built-in instead.
Hope this helps (if my guess is wrong, forget it:)
Gerald Krieger -
FRM-40401:No changes to save
When I write insert or update statement manually the statement is getting executed.But I am getting error as in subject line.
I dont want to see that error message.If row inserted/updated I want to show message 'One row inserted/updated'.
Please can any body tell about this by using a simple dept table.
Actually I am making database item 'no' in property palate.
I am a beginer.If you do the insert in plsq code Forms does not know about the change -- as opposed to when you use the built in functionality by inserting a record thru a database block -- so it gives you this error.
One way of avoiding the error is to have a hidden database block and make the insert there with PLSQL code. -
FRM-40405: No change to apply. Error Alert.
The first time a detail is updated this message does not display.
The second time a detail is updated, this message displays when the form_commit (or COMMIT) trigger fires.
The alert fires even when a new master record with new details has been queried.
A form level or block level ON-ERROR trigger does NOT intercept this alert. It does intercept other errors like navigation past the first record error or the out of range error.
Where is this error generated? Is it caused because we are using a ref-cursor stored procedure?That message is issued as a result of a Post; command, not a commit.
Look for a stray post command in your form.
And it can ONLY be handled by an on-error trigger. Please post the code in your on-error trigger.
Also, do not create an On-Error trigger at the block level. (That may be why your trigger is not intercepting it.) From the Forms On-line help:
In most cases, On-Error triggers should be attached to the form, rather than to a block or item. Trapping certain errors at the block or item level can be difficult if these errors occur while Form Builder is performing internal navigation, such as during a Commit process. -
How to suppress message level on FRM-40405 ?
Dear members,
I want to hide "FRM-40405 No changes to apply". used the following
:system.message_level := 25;
commit;
:system.message_level := 5;but still the same message, where am I wrong?
regards:thanks for your reply,
here is the complete scenario,
I have a form "FORM1" from which, I am opening another form "FORM2". using the following code.
OPEN_FORM('FORM2.FMX', ACTIVATE, NO_SESSION, LIST_ID);when I open the FORM2 and update a field and press exit button it alter " do you want to save changes" on pressing 'Yes" it 2nd time show alter "FRM-40405 no changes to apply".
I want to suppress this alert.
when using open_form with SESSION it don't give any alert.
here I am confused that the alert is coming from where? from FROM1 or FORM2?
I tried all the possible techniques to suppress this alert but couldn't be able to suppress.
Regards: -
No changes to save error message
Hello All,
I am using Oracle forms and db 10g. I want to have more than one forms simultaneously open. When I save a record in the third form I get a "No changes to save" error message twice. I know that the error comes from the other two forms. I tried to set the error message level to a higher value but I still get the error message.
So my question is :
Can I get rid of the "no changes to save" error message while having more than one form opened at the same time.have a look at this solution http://talk2gerd.blogspot.com/2006/12/best-practices-on-error-and-on-message.html
snippet:
DECLARE
V_Error_Code NUMBER;
V_Error_Text VARCHAR2 (2000);
V_DBMS_Error_Code NUMBER;
V_DBMS_Error_Text VARCHAR2 (2000);
BEGIN
V_Error_Code := Error_Code;
V_Error_Text := Error_Text;
V_DBMS_Error_Code := DBMS_Error_Code;
V_DBMS_Error_Text := DBMS_Error_Text;
IF V_Error_Code IN (40401, 40405) THEN
|| 40401, 40405 - no changes to save / apply get filtered
NULL;
ELSIF V_Error_Code IN (-1034, -3114) THEN
|| -1034, -3114 - not connected to database
Message ('Not connect to database, exiting Form');
Exit_Form (no_validate);
ELSIF V_Error_Code IN (40508, 40735)
AND V_DBMS_Error_Code BETWEEN -20999 AND -20000 THEN
|| -20000 errors are raised by RAISE_APPLICATION_ERROR
|| They are handled in a different way
Show_and_Log_DB_Error (V_DBMS_Error_Text);
ELSE
|| All other errors went into Show_and_Log_Error, where they
|| get inspected, analyzed and logged.
Show_and_Log_Error (V_Error_Code);
END IF;
END; -
After moving from forms 4.5 to 6i, I get the message "FRM-40405 No changes to apply" on PL/SQL commits. How can I get rid of the message. I have tried setting system.message level to 20 but still get the warning message.
The level of message "FRM-40405 No changes to apply" is 5, so you have to set system.message level to 5:
:System.Message_Level := '5';
Helena
null -
2 Problems Form Wont Run Without DataBlock / âFRM-40405â
Using Oracle8i, Form6i & Report 6i.
Requirement
1. How to run form with out DataBock
2. Avoid rising of Error âFRM-40405 No Change to Applyâ
Problem Details
Developed an index / welcome form with link of all other reports & forms.
But this form wonât open unless I include (a DataBlock or dataitems in a non-DatabaseBlock).
If I include a DataBlock it give following error:-
âFRM-40405 No Change to Applyâ when ever I open linked forms/reports and when ever I enter new record in link forms.
This error wonât stop/corrupt any process but rise on every above instance.
Wishes
JawadYou should be able to run a form without a base table block. You do need an item (can be a non base table item) to which the cursor can navigate. This can be a text item, button, etc. If you don't want the item to show on the form, make it a very small size (height and width both equal to 1).
-
How to change default save as location
hi,
how to change default save as location in acrobat 7.0?Why is Acrobat involved in this process at all? Why don't you save directly the pdf from your email program directly where you want it to be? Acrobat is just adding another step to this process.
-
I have created a form in InDesign, exported to a pdf, then created an editable form and saved. When I open the form and make changes and save, then reopen the changes are there. If try to email this form as an attachment after editing, the attachment is always minus the edits. ????
Hi chuck,
If you ave created the form and then filling it yourself and saving the form, the filled data should be there when you reopen the same form.
Can you please send the form to me at [email protected] so that I can have a look.
Regards,
Rave -
Woundering how to change the "save as dialog / window" in Reader X ?
Hi
I am woundering if there is possible to change the "save as window" in Adobe Reader X. I want this to be the same as the "open window", where you get more browse options.
Regards Frode - Netscenario.noYou may use the forum for Adobe Reader.
Maybe you are looking for
-
Videos won't work on windows vista beta 2
Ok i Have windows vista beta 2 and most of my itunes work fine but videos won't show up, even when i bought one it dident show up, and that is really weird because everything works fine on my laptop with itunes and windows vista beta 2.Why won't it w
-
Hi, 1) Is it possible to retrieve an archived Idoc? If yes how? 2) Assume that an archived IDoc is in status 68. Please help confirm 3) Is it possible to retrieve an Idoc in status 68? If yes how. Would greatly appreciate any help. Regards, Mick
-
Unable to connect Firefox can't establish a connection to the server at www.google.com. The site could be temporarily unavailable or too busy. Try again in a few moments. If you are unable to load any pages, check your computer's network connection.
-
Server 2003, Block IPods and IPads
Good Morning, My network requires pretty high security and we have a policy that disables USB devices. I have a custom GPO that blocks the usbstor.sys, which works for thumb drives and external hard drives. But in some testing we learned you can ac
-
Storage management Sata Drivers
Hi, I installed xp on lenovo g550 by switching to IDE mode, after that i installed all sort of drivers iincluding sata drivers for sata channels, but when I switch back to AHCI mode & boot, Os will not load, Only blue screen comes & laptop restarts &