Unnecessary question "Do you want to save the changes..."
Hello again,
I have a multi-record block on which only update is allowed and two buttons: accept and reject. There are three possible ways of changing records:
1. change values in some fields and commit - which works fine;
2. change values in some fields and press accept button;
3. change values in some fields and press reject button.
Buttons have implemented delete, update, insert in some tables using a pl/sql stored package. At the end of the processing, for both buttons, record "accepted" or "rejected" dissapears from the block - using execute_query. Problem is that if some values have been changed before pressing the button, warning window appears: "Do you want to save the changes you have made?" which in this case is unnecessary and annoying. How can i get rid of this message?
Thank you in advance.
If you don't want commit changes on base table items you can use clear_block(NO_VALIDATE) built-in before execute_query
Similar Messages
-
Forms6i question - Do you want to save the changes you have made !!
Hi,
I'm developing a custom master-detail form for 11i e-Business Suite. The requirement is to programmatically default values for some of the base table items when entering the master record.. Both the master and the detail blocks are base table blocks and defined the relation between these 2 as well..
So i have coded my defaulting logic in the "when-new-record-instance " trigger only when the "(:system.record_status IN ('NEW','INSERT' ) AND :system.mode <> 'ENTER-QUERY')"..
This is working but the problem is even when i do not change any values in the master block and i try to exit out of the form, getting a message "Do you want to save the changes you have made ".. I want to get that message only when some thing else is changed/entered in the master block or when any new detail records has been entered for that master block.
Thanks in advance
ShreeShree,
It sounds like you have a Post-Query (PQ) trigger that is populating items in your Form. This is the typical reason why you would see this message when you close your form and no User changes have been made. The best solution would be to move your non-base table items from your data blocks to a control block so the PQ trigger won't mark the block or record as "Changed".
Hope this helps.
Craig... -
Show the alert 'Do you want to save the changes? after entering each record
Hi,
Is there a way to show the alert 'Do you want to save the changes you have made?', after entering each record.
i.e. as soon as a record is entered, user should be prompted to 'Do you want to save the changes?' the record when they move to the next record.
I used the below code in Post-Record rigger. Prompt was diplaying fine as per the requirement,but record was not being saved.
DECLARE
n_button_selection INTEGER;
BEGIN
if :System.Record_Status='INSERT' then
fnd_message.set_string('Do you want to save the changes?');
n_button_selection := fnd_message.question('Yes', 'No','Cancel', 1, 2,'question');
IF n_button_selection = 1 THEN
forms_ddl('commit_FORM');
ELSIF n_button_selection = 2 THEN
RAISE form_trigger_failure;
ELSE
NULL;
END IF;
end if;
END;
I used forms_ddl('commit_FORM') to commit the record. Because we can't us Do-key('commit_form') in post-record trigger. But forms_ddl('commit_FORM') is not working. So can anybody please give some idea regarding this.
--Forms_ddl issues dynamic sql - you cannot call another builtin (like commit_form) within forms_ddl. Check form_status after the call and you will see that it failed.
Moreover, forms is not able to execute the post and commit process if you issue "forms_ddl('commit');", so this will not be a solution either.
You could use the When-New-Record-Instance - Trigger, which allows restricted built-ins to be executed, and issue do_key('commit_form');". However, you would have to check the :system.block_status or :system.form_status, because :system.record_status will already hold the new record number.
Regards,
Gerd -
How to avoid the message "Do you want to save the changes you have made?"
i have 3 forms
master block
detail1 block of master
detail2 block of detail1
when i go out of detail1 and detail2 blocks after doing some modifications it asks me "Do you want to save the changes you have made"?
i want to avoid this message as well as my changes should be posted in the database. what is the solution for this big pblm?hi
may be you are trying to modify the database item or reassigning the database item value which is not actually needed.
try to comment the reassigning database values
and give clear_form(do_commit);
most probably u will not get the message again
Regards
Rajdeep .A -
Dialog Box as "Do you want to save the changes?" in Forms.
Hi,
I have 4 datablocks in my forms that corresponds View.
In the form design, I have a canvas(multiple inserting design) with two buttons that calls the other two blocks.
Am inserting the records in the following way,
In first record,
am entering the value in one block, then a button-press event and so it opens another canvas where I enter some values then return to my main canvas. This is one row.
But while I try to insert in the second row, there arises the dialog box as "Do you want to save the changes"?
I should not get that dialog box.
Please suggest me with the solution.
Regards,
MiniThanks for the response,
Let me clearly explain.
I have 3 blocks created from view not table.
I have a canvas in the multiple display layout i.e Number of items displayed is 10.
In that canvas, I have set the two buttons. the button event is calling another canvas.
Am inserting a record in the first row in the following sequence.
Inserting the values for some fields in the main canvas, then entering the button, it opens another canvas that responds to another block, there am entering some values and closing the button event canvas, then returning to my main canvas, then entering the remaining fields with the values, thus my first row ends.
Now I want to enter the values in the second row, while I navigate from the first Row to the Second row, there arises the dialog box as to save the changes or not?
I should not get the dialog box.
Am inserting the values in the database using Insert statements in all the blocks.
Hope U understand the issue.
Suggest me with the solution.
Regards,
Mini. -
Gettins "Do you want to save the changes you have made" promt without any
Hi all,
Problem : I have a master detail relation between two blocks which are on different window ( say block 1 on window 1 is master and block 2 on window 2 is detail) ,
when i open my window 2 and close it without any changes, then when i try to do any change in window 1 i get this popup message "Do you want to save the changes you have made".
I have various non database items as well which are used to hold intemediate values like sum of a column and all.
for the close button on window 2 logic :
go_block('BLOCK1');
hide_window('WINNDOW1');
I dont want to change the message level. as if there are really changes made then we need this message.
In another thread i saw this might be due to copy "value from property" created by master detail relation on the joined columns.
Please suggest any solutions.
Thanks in advance.HI I found the solution to this Problem:
when we queried the data block then few items values were assigned . this changes the block_status to CHANGED as well as the form_status variable to CHANGED.
so in EXIT logic of that window i cleared each block explicitly . this discards all the changes made to those blocks ( This logic was implemented for CANCEL button on my screen as so we need not save the data) while the SAVE logic already has the COMMIT so will not set the popup for that.
Not a beautiful logic...... but works ...... :) -
Suppress the message do you want to save the changes you have made
hi all
i have written a rollback
it clears my record
but gives me the message
do you want to save the changes you have made
i have written
:system.message_level :=25;
rollback;
:system.message_level=0;
but still it is giveing me the message
can you please tell me how to suppress this message
please help me
thanks
mandartry in reverse
-
HOW to call at anytime in form6 "do you want to change the save you have made"????
It executes only if you use exit_forms
and I don t want to save with a commit_forms
without do appears this forms of form6
Thanks a lots for any answering
nullyou have to write a trigger on key-clrfrm and key-next-record.
on that triggers you can call alert with 2 or 3 buttons.
I hope it will help.
Mustafa -
Form is asking for do you want to save the changes made in the query mode
hi all,
according to my previous thread {thread:updating the nondatabase column}
i have set the lockrecord to yes for the non_db_field but when i query the form with help of f8 and try to close it with out any changes then too its asking for the commit.
how can i solve this issue.
Thanks..
Edited by: user13329002 on Dec 30, 2010 12:41 AMHello
Yes, i do agree with Ahmed
pls check the POST-QUERY TRIGGER < ---- This is the KEY-Problem
Trace which item causes the problem almost it's a db item was formaly returned from LOV and it is re-assigned in the POST-QUERY Trigger .
SO , changes in the db occured changes the status of the form.
most propaply it's a retrieved fk in ur post Query,also avoid using reserved words in ur display items as
TYPE ,NAME ,etc.
ITEM_ID ,ITEM_NAME -- reserved word for java and related staff ...pls check list of oracle reserved words
hope this helps solving ur problem...
Regards,
Abdetu... -
Disable the prompt "Do you want to save the chnages you have made?"
Hi,
I have a forms application with some text fields on it.
After the data is displyed on the text fields from the
database, one of the text fields gets highlighted
automatically, even though I have not selected it
manually.
When I close the forms window, I get the
message prompt "Do you want to save the changes
you just made?",though nothing was changed in the
text fields.
Can anyone help me get rid of these implicit forms messages?.
Thanks
sharathHi
After the data is displyed on the text fields from the database
Are you displaying data through querying the base table through execute_query (or similar built-ins) or are you populating the block programatically?
In case you are querying the record, then form should not display save confirmation dialog box.
If you are populating the data block programatically and if the block is a database block then try including this as the last statement of your populating logic: -
set_record_property(:system.cursor_record,<block_name>,status,query_status);
Regds
Sumit -
How to suppress 'Do u want to save the changes?' When there are no changes
Hi All,
I have developed one form,which contains 3 blocks in that 2 are database blocks and one is control block.It's working fine.When I close the form without doing any change also it is showing an alert as 'Do you want to save the changes you have made?'. How can I suppress that alert when I haven't made any change to the form.
I am displaying one filed in the database block as 'null' until check box is checked.For that I have written code in when-new-block-instance trigger of that block.
There I wrote SET_RECORD_PROPERTY (GET_BLOCK_PROPERTY (:SYSTEM.TRIGGER_BLOCK, CURRENT_RECORD), :SYSTEM.TRIGGER_BLOCK, STATUS, QUERY_STATUS); also to change the block status as query.
But it is not working, still I am getting the alert,How can I solve this could anyone please give me a suggestion..
Thanks in advance.So, this functionality can be done through CHECK BOX itself. Why you are making null by WHEN-NEW-BLOCK-INSTANCE. You can just set the update and insert property for that fields and rest things you can control from chexbox. And WHEN-BLOCK-INSTANCE-TRIGGER will fire once when you will access that block. If you want to set the same functionality for each record. Then you must use WHEN-NEW-RECORD-INSTANCE. for ex.
Trigger = WHEN-NEW-RECORD-INSTANCE (BLOCK-LEVEL)
Here i will assume that if check box is checked then he can update that fields.
IF :CHECKBOX='Y' THEN
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_TRUE);
ELSE
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_FALSE);
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_FALSE);
END IF;In the above code no need for set value to NULL.
And on CHECK BOX you can write like this...
Trigger WHEN-CHECKBOX-CHANGED (ITEM-LEVEL)
IF :CHECKBOX='Y' THEN
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_TRUE);
ELSE
:FIELD_NAME:=NULL; -- here if check box is unchecked then it will set value to NULL
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_FALSE);
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_FALSE);
END IF;-Ammad -
Deactivate question "Do you want to save" when closing
Very good in Lion: when switching off the computer all programs close immediately. But Logic: always this stupid question "Do you want to save?". How could I get rid of this question, deactivate it in order to get the program closing immediately.
imho very bad in Lion, that.
I can no longer Save as... in Preview, so I can now only rename my screenshots (what I always did after editing them) via the Finder. Also, this Lion automatic save nonsens makes the Mac take much longer to start up than it did under Snow Leopard.
Also, if I open a Logic project, fool around in it, decide that I don't want to keep any of my foolings, luckily I still get the option to close and NOT save. For that reason it is very good that the user still has a choice of saving or not in Logic.
Afaik you cannot deactivate the "stupid question". -
Do you want to save the record on detail block
I have a master detail form. When i update the detail section and navigate to a different master item. I am getting do you want to save the record on my detail block.
I want to post the changes everytime on the detail block. As i will rollback or commit depending if user saves the form or not on a button press.
But I can not find any trigger that fires when i change the master record (after changing the detail block) any ideas?Hello all,
I have problem to save list of records in stacked canvas block, that is it always save the record where current reocord indicator is indicating,
can somebody help me out, how to save data on stacked canvas without having master-detail relationship.
Regards,
Ather Ali
Edited by: user11972516 on Apr 17, 2011 1:27 AM -
Unexpected & Unnecessary Popup "do you want to save changes to 'x' before closing ?"
Hi Im running a code that is opening a pdf doc and reading some stuff from it (not editing it).
avDoc = CreateObject("AcroExch.AVDoc")
avDoc.Open(FileBox.FileName, "x")
accroApp = CreateObject("AcroExch.App")
accroApp.Show()
accroApp.Hide()
accroApp.Exit()
avDoc.Close(0) 'accroApp = Nothing
But when I close it gives this question "ONLY SOMETIMES"
"do you want to save changes to 'x' before closing ?
Previously, i just forced it to save at all times before closing.
I guess there is a way to avoid this, by setting some dirtyflag=false/true?
Pls help
JSCheck out this post - http://forums.adobe.com/message/3871646#3871646
My issue was similar and I finally got it to work. -
Do u want to save the changes ?
Hi
Sorry am confused regarding this thread, hope someone could help me pls.
Would you like to save changes.. no changes to save
From the thread i concluded that..
.It is important to use the following in the POST-QUERY TRIGGER as follows
SET_RECORD_PROPERTY(:SYSTEM.TRIGGER_RECORD, :SYSTEM.TRIGGER_BLOCK, STATUS, QUERY_STATUS);
BEGIN
SELECT dept_name
INTO :dept_name
FROM departments
where dept_id = :emp.dept_id;
EXCEPTION
WHEN OTHERS THEN MESSAGE(ERRMSG);
END;am i right ?
i need explanation pls.
Regards,
Abdetu..From the thread i concluded that..
.It is important to use the following in the POST-QUERY TRIGGER as follows
SET_RECORD_PROPERTY(:SYSTEM.TRIGGER_RECORD, :SYSTEM.TRIGGER_BLOCK, STATUS, QUERY_STATUS);
BEGIN
SELECT dept_name
INTO :dept_name
FROM departments
where dept_id = :emp.dept_id;
EXCEPTION
WHEN OTHERS THEN MESSAGE(ERRMSG);
END;From the code you show, not really. The exception-part is even bad, leave it out, forms will show an error anyway when it occurs.
This part
SET_RECORD_PROPERTY(:SYSTEM.TRIGGER_RECORD, :SYSTEM.TRIGGER_BLOCK, STATUS, QUERY_STATUS); CAN be useful, but is not u MUST. In any case, it should be after any lookup-code, so in your example it should be just before the exception handler.
The SET_RECORD_PROPERTY makes sure that any outstanding validation on any item of the current record will be considered as "finished". This is helpful when you have a lookup-code as in your example AND if there is a validation-trigger on that lookup-item (in your case a WHEN-VALIDATE-ITEM-trigger on :DEPTNAME), which checks the value in the item and tries to read the according fk-id-value for the given textvalue and store it back to the fk-id-column.
Maybe you are looking for
-
DUMP while running my import FM
Hi ALL, I have import request and i got sucess .My 3 function modules are import to client system.2 FM are working properly but 1 function module is going for DUMP. I have gone dump analysis its saying An exception occurred. This exception is dealt w
-
Spry displaying in Firefox & Safari, but not in IE
Ok, so I was trying to replicate one of the demos: http://labs.adobe.com/technologies/spry/demos/rssreader/index.html Except that we're running on a LAMP platform which meant I had to rerwite the ColdFusion into PHP. I'm hoping the PHP isn't the issu
-
After effects composition preview video not working correctly
Okay so, whenever I try to change something on the composition preview video, it doesn't work. I have to go to a completely different screen and go back to see what ive changed, and when I try to ram preview it doesn't even do anything but play the m
-
Standby server - WAIT_FOR_GAP error
Hi, I have a Oracle Dataguard 10.2 running on Windows and found a WAIT_FOR_GAP error on the standby server. --> alert log of standby Sun Jan 30 20:00:04 2011 ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION MRP0 started with pi
-
How to Use Open Dialog Box, & Save Dialog Box
Hi Frens, Can You tell me how can i use open dialog box, and save dialog box using Flex. Because there is no such components are given here. Also How can i Do when I click on some button, or some event Please tell me abt this, Thks in advance frens A