Customizing default message "Do you want to save changes you have made?"
Hi all
Can I customize the default message generated by oracle forms "Do you want to save changes you have made?"
I want to change its title, message, alert style, button labels, and visual attribute. And functionality.
Thanks
Asad.
Of course ON-MESSAGE will not work. Use the trigger on your Exit_Form button. Then check the form or block or record status (depending on your design) and do appropriate coding, something like this:
IF :System.Form_Status = 'CHANGED' THEN
retCode := Show_Alert('MY_EXIT_ALERT');
if retCode = ALERT_BUTTON2 THEN
Exit_Form(NO_VALIDATE);
elsif retCode = ALERT_BUTTON1 then
Commit_Form;
else
Whathever_It_Is;
end if;
end if;
If you have master-detail block and u're recieving the message when detail is changed but u want to scroll master records - write me a mail to tell u which trigger to use. It is not that I don't want to share info - just can't recall right now.
Similar Messages
-
lost IPhoto, thankfully photos are in pictures. How can I restore?
Why are you going back...? Once the photo library has been modified by a never version of iPhoto. You can not go back to the older version without losing the work done in the newer version.
1. Upgrade to the newer version of iPhoto.
2. Launch the older version of iPhoto, Import from backup and rebuild the library.
see > How can I uninstall the newest update...: Apple Support Communities
and/or > How can I go back to iPhoto 9.4.3?: Apple Support Communities -
How to enforce the message "Do you want to save changes?"
Hello,
How to enforce the message "Do you want to save changes?" when the user attempts to close a form after checking a non-database item (check-box).
All the other database items in the block are not updateable and only viewable.
After checking the non database item check-box, if the user tries to commit, then the system is saving the changes and call the appropriate procedure on save.
But if the user tries to close the window without committing, the form is not showing the message "Do you want to save changes?" since the check-box is a non database item.
How to enforce the message "Do you want to save changes?" in this scenario when the user tries to close the window?
Thanks in advance.
Cheers
SriThis is a fairly common question in the forum. You will need to override the default exit form process and check to see if the checkbox is checked. You can do this in the Key-Exit trigger. For Example:
DECLARE
al_id ALERT;
al_button NUMBER;
BEGIN
IF ( CHECKBOX_CHECKED('YOUR_BLOCK.CHECKBOX_ITEM') ) THEN
/* Display an Alert here that asks, "Do you want to save changes?" */
...code here to set the properties of your alert...
al_button := Show_Alert(al_id);
IF ( al_button = ALERT_BUTTON1 ) THEN
--YES
/* Perform COMMIT Processing here...*/
ELSIF ( al_button = ALERT_BUTTON2 ) THEN
--No
Exit_Form(NO_VALIDATE);
ELSE
--Cancel
RAISE Form_Trigger_Failure;
END IF;
ELSE
Exit_Form;
END IF;
END;If you need more help with the Alert, please check out the SHOW_ALERT topic in the Forms Help.
BTW, what happens if all the user does is check the checkbox? No other changes have occured. What changes are you trying to process?
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
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 -
Removing a message (Do you want to save changes)
Hi all,
I have a screen (login), to let the user enter the user name and password then click the button (enter), but when the user clicks enter the message (Do you want to save changes) appear,
How to remove it??
Thank you very much
Tasneemhi
is it db items or non db items?
clear_form();
or
search online for.
SYSTEM.MESSAGE_LEVEL built-inThere are 25 Levels of Message in an Oracle Forms.
How much cretical error or message is
0 -- all errors or message
1
2
25 -- don't shows any
If we don't want to show any error or message to the user then we assign 25 to message level as
:SYSTEM.MESSAGE_LEVEL := 25;Now, system will not show any message error to the user.
If i wanna show all the errors then assign it 0.
:SYSTEM.MESSAGE_LEVEL := 0; sarah -
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
-
Do you want to save changes message while close pdf
hi everyone...
I am very new to PDF programming
basically I wrote my program in notepad and I saved it as .pdf format
but when I open it and try to close it..it showing me pop up like do you want to save changes..which is I dont want to happen...
is any one have idea what changes i have to do or how i make my file readonly....
thnks in advance...thanks Irosenth,
Well my requirement is very small.....
I am not using many XObjects In my program except one which is for Image
ok Following code , I copied from PDF refe tutorials. Even that is also not working(Asking me for Save before close).. can anyone correct xref to avoid that error
%PDF-1.4
1 0 obj
<< /Type /Catalog
/Outlines 2 0 R
/Pages 3 0 R
>>
endobj
2 0 obj
<< /Type /Outlines
/Count 0
>>
endobj
3 0 obj
<< /Type /Pages
/Kids [4 0 R]
/Count 1
>>
endobj
4 0 obj
<< /Type /Page
/Parent 3 0 R
/MediaBox [0 0 612 1000]
/Contents 5 0 R
/Resources << /ProcSet 6 0 R >>
>>
endobj
5 0 obj
<< /Length 883 >>
stream
% Draw a black line segment, using the default line width.
150 250 m
150 350 l
S
% Draw a thicker, dashed line segment.
4 w% Set line width to 4 points
[4 6] 0 d% Set dash pattern to 4 units on, 6 units off
150 250 m
400 250 l
S
[] 0 d% Reset dash pattern to a solid line
1 w % Reset line width to 1 unit
% Draw a rectangle with a 1-unit red border, filled with light blue.
1.0 0.0 0.0 RG% Red for stroke color
0.5 0.75 1.0 rg% Light blue for fill color
200 300 50 75 re
B
% Draw a curve filled with gray and with a colored border.
0.5 0.1 0.2 RG
0.7 g
300 300 m
300 400 400 400 400 300 c
b
endstream
endobj
6 0 obj
[/PDF]
endobj
xref
0 7
0000000000 65535 f
0000000009 00000 n
0000000074 00000 n
0000000120 00000 n
0000000179 00000 n
0000000300 00000 n
0000001532 00000 n
trailer
<< /Size 7
/Root 1 0 R
>>
startxref
1556a
%%EOF
xref
5 1
0000000179 00000 n
trailer
<<
/Root 1 0 R
>>
thanks in advance. -
Adding "do you want to save change you have made" message.
We developed and multy screen web applicaton using J dev 11.1.1.1 and ADF BC- ADF RC
We want when a user go to other screen to ask him a question as "do you want to save change you have made"
Otherwise if a an error occurs "source" screeen
and user go "target" screen and want to commit change
ADF try to validate all entities.
And error mesages about source screens displaying on the target screen.
it is very confusing situation fro users.
Thanks.Thasnks alot.
We implement http://kuba.zilp.pl/?id=681 method.
but isCommitEnabled() method return FALSE every time.
Do we need to do anything in app module side.
protected Boolean isCommitEnabled(){
return getApplicationModule().getTransaction().isDirty() ? Boolean.TRUE : Boolean.FALSE;
we will try pedja's recommendation also... -
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... -
Getting Do you want to save changes while pressing F11
Hello,
I created one Custom Form by using template.fmb. In that 2 database blocks and 2 control blocks. In database blocks also couple of items are non database items. When ever I open the form from Oracle Applications and pressing F11 with out doing any changes then it is prompting for Do you want to save changes? If i am pressing Yes then (in my form i am using sequence). that one is generating and saving. After saving it is going into enter query mode.
Can you please help me out how to avoid this message and why this message is coming.
Regards,
Akash VandanYou are getting this problem because you are probably modifying one of the fields in PRE or WHEN-NEW triggers. Just check if you have assigned any value to the fields using. you can search for colon (:).
Just delete that part of code and your form will work fine.
Regards,
Ashish Kanak -
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 ...... :) -
How do I stop pop up that asks me, Do you want to save changes to doc... before closing? I have made no changes only printed the file. Using Adobe Reader DC, Windows 7 64 bit.
This is very annoying and we need this stopped as we have made no changes to any of the adobe files. Please advise how to do this.
Customer Service DCCI first tried the version without the deflated stream (so everything uncompressed) against the online repair tool to check/analyse it @ https://www.pdf-tools.com/osa/repair.aspx
And it says no error found, but the reader still want to save it when closing so i still had no clue at this point.
Fortunately, i finally found what was wrong with my generated PDF.
In my xref table, each object reference was not end by a full EOL, i only did put a newline char.
Now i have "carriage return" "newline" which is the full EOL and the reader is happy and close the file silently.
As suspected i did not follow correctly the specs on xref table
Now i'll go and figure what i did wrong with the deflate filter
Thanks for your help. -
Master-detail raises Do you want to save changes
Dear all,
my form is of 1 master block and 3 details to that block, now whenever i tried to exit the form a Do you want to save changes? message is displayed but whenever i delete any one of the relations the message doesn't appear..
plz any help is appreciatedThe problem is that some of the records are marjed as dirty - If you're not actually changing anything manually and you still get the error, then check that you've not got any POST-QUERY triggers updating DB fields or the use of LOV for validation which can also mark a record as dirty.
You can of course supress / ignore the DYWTC message using EXIT_FORM(NO_VALIDATE) or similar, but you'lll probaly want to double check the cause of the record update first. -
LOV Display - "Do you want to save changes?"
Hello,
I setup and simple LOV with just a few fields. When the user enters runs the form they can click on a button "View List", then the LOV displays nicely. They can choose a record from the list and it displays just fine in my form.
The problem is that when they click on the "View List" button again, then chose a differnent record, I keep getting the message "Do you want to save the changes you have made?". Even when you say "NO" it doesn't even bring up the record that I clicked on.
My "View List" whe-pressed trigger looks like this:
IF Show_lov('LOV_NEWSLETTER') THEN
execute_query;
END IF;
Do I need to clear the form or something like that ?
Please help,
BobHi Bob,
the reason is your execute_query statement in the trigger. The user picks up a value out of the LOV, the record get marked for insert/update inside forms. The next time the user picks up a value, forms have to ask for saving the changes because you wan't to progress a execute_query against the same table again. Why do you use execute_query after showing the LOV ?
Hans -
Keep Getting 'Do you want to save changes Msg'
Hi all
Have a small form, two multi-record blocks, everything works ok, have no commits or anything in it but keep getting the message 'do you want to save changes?' if I clear query or exit form, if I press yes I get frm-40400 X amount of records saved when nothing has been changed.
I have another very similar form project more or less the same but with only one block and it doesn't do this??
Any ideas?
AndrewI have used built in exit_form on a key exit form trigger and this has stopped message when I exit form.
exit_form(no_commit, no_validate);
But when I clear the query the 'Do you want to save' message still appears and also a message at the bottom left saying:
Press CTRL + Tab to move between choices, ENTER to select.
Maybe you are looking for
-
How do I log into a kid profile in Game Center on my Apple ID?
Hi all, I have a couple of kids, a couple of iPads, and a couple of profiles in Game Center, all on my Apple ID. I know how to get them their own Apple IDs, but they are too young to have Apple IDs of their own, and they will be getting special under
-
Problem in Include WBS Element Screen
Actually i got some steps for CJ01(Create Project). It is saying that after going to WBS Element Overview screen and making all the entries for WBS element and description select the INCLUDE button . I tried a lot but i am unable to search that incl
-
There is no selected print page range in the print box. Only selected PDF file and all PDF files. Any suggestions?
-
Is Designer suitable for small/medium projects ?
In you opinion, is Designer suitable for small/medium projects with small / medium databases ? Let's say arround 20 tables ? Or we should better create those tables directly , without ERD, using SQL scripts and/or JDeveloper, and also using JDevelope
-
Remove/deactivate enhancement components from enhancement project
Hi all, I have created project for enhancement & included the enhancement in the project. Enhancement contains 3 components for example 1. Exit_XXX_001 2. Exit_XXX_002 3. Exit_XXX_003 I have implemented all the three components to check which one sui