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
Similar Messages
-
Save changes when there are no changes
Why is it that when I open a subvi and close it making absolutely no changes, I'm prompted to 'save changes'?
Hi wb2nvy,
"Why would anyone NOT want to include the subvis when the main vi is recompiled to a newer version?"
Maybe you have linked to subVIs also used with the older LV version and so don't want to save subVIs automatically?
As said before: no other IDE I know of automatically saves referenced files to a newer version...
And:
You should get asked to save subVIs before closing the mainVI. You always have the option to save them. You always are presented with reason why LV wants to save. You always have to decide between saving or not saving... You always have the mass compile option.
It's your duty to decide when to upgrade VIs - LV will and cannot take that decision!
Message Edited by GerdW on 06-02-2010 04:37 PM
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
in my itunes tab is images / photo disappeared. . can not get it back, so now I can not get pictures on my iphone??? I do not want to use the photo stream. there are others who have experienced this tab disappears
Make the iTunes window wider.
It is on the far right. -
HOW TO SUPPRESS "DO YOU WANT TO SAVE CHANGES YOU HAVE MADE"
ORACLE APPS CUSTOM FORM
WHENEVER I AM PRESSING CTRL+F11 AND SERACH ABOVE PROMPT IS COMING. HOW TO SUPPRESS THAT ONE.The message is occurring because the user (or your code) has changed something in the form. Forms needs to know what you want to do with the changes before it can continue.
When you suppress this message, then when the user has changed something in the form, he won't be asked to save his changes. What do you plan to do then? If you silently discard his changes, he may not be happy with you. If you silently save his changes he may not be happy either. So let the user see the message and let him decide what to do.
If your code is changing something in the form (not the user), then you need to find out what is being changed. Once you know, then you can fix it. -
Getting: Do you want to save changes? When there are no changes?
Forms [32 Bit] Version 10.1.2.3.0 (Production)
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
I have a form that always prompts me if I want to save changes after querying a record and then exiting or trying a new query. I cannot figure out what changes it is asking if I want to save as nothing has been changed on the form. Is there a way to track what is causing this or where it is coming from?Are the "Non-Database" items part of a base table block? If so, when you assign a value to these items - even though they are non-database items - Forms will record that the something in >the block has changed. Hi Craig, thats not true. You can change non-db-items in a base-table-block without the record-status beeing changed. Changeing the record-status only happens when the property "Lock record" is set to true, or if there is a WHEN-VALIDATE-ITEM-trigger on the non-db-item which changes a db-item.
You should always have put non-base table items in a Control Block.Thats also not true. You have non-base-table-items in nearly every basetable-block, think of all the lookup-items. How would you synchronize records in your db-block and your control-block? -
Reminders - how can I change the date when there are a lot of notes?
If I add a lot of notes to a reminder till it nearly fills the length of the screen when opened, when I tap on the reminder date to change it, the control for selecting the date is off the screen. Is there a way around this?
Click here and request assistance.
(73274) -
Howe can I tell when there are no references to an object?
Hi all,
Is there any way for me to know when there are no references to an object without using finalize()?
I want to pool created objects when it is safe to do so.
finalize() won't work since it is called only once for every object instance.
Regards,
MarcusIf you are trying to establish an object pool by placing the objects back in the pool when there are no references to the object, then I am afraid you are out of luck.
If there were no references, then you would not have a "handle" on the object to be able to manipulate it in any way (like putting it back in the pool).
If you are talking about something else, then the classes in java.lang.ref.*, might be of use.
If you are really trying to pool objects, then you should have some sort of "close" method in the objects that is called when they are no longer needed and can be returned to the pool. -
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 can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.
Hi
Please take a look to this thread Re: Can I refresh the browser rather than open a new tab? -
I have a new iPhone for work, set up on a new iTunes account (PC). I was told i can associate it to my home iTunes account (iMac) but don't know how. I want to save the work related apps as well. Any advice? Thanks
Thanks. I messed up with my husbands iphone because I was told the wrong thing. Now everytime I sync his phone it makes it look just like the other phone I had. Do you know how I can fix taht for his phone? Any settings I can turn off that will prevent all of my apps/contacts, etc from auto populating his phone?
-
When I try to open a pdf link in my browser I am asked where I want to save the file. I used to be asked if I wanted to open the file. How do I get back to being asked if I want to open rather than save?
What browser?
-
When I get a phone call , then want to save the message, no keyboard comes up to type the name. How do I fix that?
You can open the Phone app then tap Recents then the blue 'i" in a blue circle at the right of the number then "Create New Contact" then tap a field such as "First" name and the keyboard should appear.
-
When I change a password, sometimes I get a pop-up asking if I want to save the new password - sometimes it doesn't appear.
How can I save the new password if popup does not appear?The website may be using autocomplete=off to prevent Firefox from saving the name and password.
You can remove autocomplete=off with a bookmarklet to make Firefox save the name and password.
*http://kb.mozillazine.org/User_name_and_password_not_remembered
*Saved Password Editor: https://addons.mozilla.org/firefox/addon/saved-password-editor/ -
How do I locate Bookmarks on my computer?
(I cannot start Firefox, so I want to save the bookmarks on a seperate disk so that I can do a complete uninstall / reinstall, but would like to save my bookmarks.)
== User Agent ==
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)See http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox
-
when I go to youtube and view a video clip it usually asks if i want to save the video I'm watching. Now all of a sudden it no longer asks the question. How do I get it back?
I believe that might be related to this:
See: http://real.custhelp.com/app/answers/detail/a_id/7303/p/3/c/2222/r_id/119487
Real is always, it seems, late in releasing updates for new browser updates. They are given the same opportunity during the Firefox pre-release testing as other developers to be sure that their products will work with new Firefox releases.
But, alas, always the same problem!
Maybe you are looking for
-
Filetype HTML.xht workaround for Dreamweaver CS5.5
upon upgrading to Dreamweaver CS5.5, i noticed that files of filetype HTML.xht in one of my web projects either wouldn't open in Dw, or wouldn't open with link color cueing and file management. the known workaround is configuring the following files
-
What is Event queue problem?
HI, I have come across JSF document, they mentioned that Event queue Problem ins SUN's JSF implementation. what is that?
-
What did the forced update for iPod touch 2g(A1288) achieve/do to my ipod?
help would be appreciated, Sim
-
I am unable to play a DVD. When I insert a DVD it prompts me to select a region. It is already set to the correct region (US) and cannot reselect or select another region. The tab is faded out.
-
Hi, I've ordered iphone 5 from the online store to the apple store on Roseville, CA. Before I paid for it I went to the store to check that they selling the a1429 model. First the guy told me they don't sell it, and its only on verizon, but I showed