Undo changes!!!!

Hi All
I have add,edit,save,cancel button in my form.If user clicks on edit button then he has 2 option either he press save button to save changes or he can press cancel button to undo changes .I am facing problem in 2nd option i.e if user clicks on cancel button then the changes become undo and record must stays(same record should be shown in form) as it was before pressing edit button.
I shall be very thankful for any reply.
Regards

Undo feature should be done in this way--no re-query needed that was bullet-proofed:
1) for database items:
IF GET_ITEM_PROPERTY(:SYSTEM.CURSOR_ITEM,UPDATE_COLUMN) ='TRUE' THEN
Copy(Get_Item_Property(itm, Database_Value), :System.Cursor_Item);
END IF;
2) for no-database item (e.g. show the name item from lookup table per ID in table):
IF :System.Cursor_Item ='TRACK_DEV.DEV_TYPE' Then
:TRACK_DEV.DEVTYPE_DB := Get_Item_Property('TRACK_DEV.DEVTYPE_DB', Database_Value);
SELECT DEVICE_TYPE INTO :TRACK_DEV.DEV_TYPE
FROM DEVICE_TYPE_LOOKUP
WHERE TYPE_ID = :TRACK_DEV.DEVTYPE_DB;
END IF;
--where above, the :TRACK_DEV.DEV_TYPE is no-database item for user to see on form, but hidden item :TRACK_DEV.DEVTYPE_DB, its column name property=TYPE_ID in the table DEVICE_TYPE_LOOKUP.
--You need to take care of the mouse or keyborad navigation properties per your coding style. In a word, you need to make it behaves as smooth as your users expect.
On metalink quest, I showed my codes to some developers, and they emailed me that they greatly like it like a charm.
John G. Feng

Similar Messages

  • Windows Update in Endless Loop of 'Installing updates" and "Undoing changes" on New Windows 8.1 Pro Install

    I am setting new Windows 8.1 Pro computers, and am installing Windows 8.1 Pro to bare drives.  Everything goes fine until Windows Update starts installing updates, and then the computer goes for hours installing updates, and then "We
    could not complete the updates Undoing changes".   It's an endless loop. It seems to be the same 38 updates.  This is a recent phenomenon.  I have not run into this until the last week or two on several new computer installs.
    Again these are brand new installs, so something is clearly wrong with the Windows updates.
    If anyone can please tell me how to avoid this, it would be much appreciated.
    Michael

    Hi Michael,
    "  This is a recent phenomenon"
    Have you made any modifications to the machines ?
    To resolve this issue ,running the built-in troubleshoot tool is a very good beginning .It will automatically diagnostic the windows update components and check the configurations for us .
     Control Panel\All Control Panel Items\Troubleshooting\Fix problems with Windows Update
    If there are antivirus software installed in these machines, please turn off them temporarily to have a check.
    The command line included in the link as S.Sengupta posted is very useful and convenient to repair the windows corrupted files .We can have a try .
    "sfc /scannow" ,"DISM.EXE /online /cleanup-image /restorehealth "
    We also can check the windowsupdate.log for more information to troubleshoot this issue .
     Run "windowsupdate.log"
    If you have trouble in analyzing the log ,please upload them to the OneDrive and paste the link here .
    Best regards

  • 8.1 Pro Pack Install Error - Couldn't Complete the Updates, Undoing Changes

    I have attempted to install the Windows 8.1 Pro Pack 64 Bit for my new Dell Inspiron 11.  I entered the product key, and the download began normally - I saw the update finishing at 100% and it said do not turn off computer, etc.  Shortly after
    the next message was "We couldn't complete the updates, Undoing changes, Don't turn off your computer.
    Please help...
    Steve

    Hi,
    Thank you for your update. In addition to disable the anti-virus, for the others who might take a look into this thread, please also try the methods mentioned in the below article:
    Troubleshoot problems with installing updates
    Also we may first try to use  Windows Update Troubleshooter.
    Best regards
    Michael Shao
    TechNet Community Support

  • HT4972 When I Copy & Paste, what results in the Paste is NOT what I copied. With enough shaking, eventually a box appears saying "Undo Change attributes", which fixes it. HOW do I turn off "Change attributes" in iOS 5.1?

    When I Copy & Paste, what results in the Paste is NOT what I copied. With enough shaking, eventually a box appears saying "Undo Change attributes", which fixes it. HOW do I turn off "Change attributes" in iOS 5.1?

    Did you ever figure out which output worked the best? I have the same original footage; trying to determine the best output settings to make a dvd for tv.
    thanks!

  • HP laptop update failed, and now it wont stop undoing changes.

    When I went on my laptop today it started updating, and after an hour when it finally got to 99% it said they the update failed, and it's now undoing changes. It's been like that for over 3 hours now. How can I try to fix this?

    You can try getting to Advance Boot Menu by 
    1. Repeatly pressing f8when the laptop boot up (Disable FASTBOOT when you are tyring to get into Advance boot menu)
    2.Shift and F8 (When the first options doesn't help at all )
    then use the Keyboard arrow keys to navigate around Advance boot menu and select Last known good boot configration or restore this PC (Please be minded that if you choose restoring it will restore to a back to the last known backup , as data will be lost ) 
    Please update here if there is still any problems

  • How do i 'undo' changes in logic instruments?

    Can anyone help with this please? im using Ultrabeat and cant work out how to 'UNDO' changes - step back to where i was before i changed a setting etc. I'm new to Logic and could really do with a hand with this one. I dont want to have to save before i make every alteration.

    The best way is to save each variation as a setting. Then you can just call up the various settings right from that instrument's settings menu and make comparisons.
    Suggest that the first time you save a setting for any particular instrument that you create a new folder from within the save setting dialog box. Give it a meaningful name (i.e., title of the song you're working on or whatever). Then save the settings in there. That way your settings for each instrument remain organized. If you don't take that approach, each setting you save will appear in the general settings menu for the instrument, and it can sure get cluttered up after a while.

  • Undo changes in lightroom 4

    How can I undo changes made in Lightroom 4 and exported as TIFF file? Need to find my "original" raw file? Thx

    In the Develop module, lower right-hand corner, there is a "Reset" button. If you click on that button, whatever images are highlighted will be reset to what ever the default settings are for that camera.

  • Undo changes in table row in Oracle ADF 10g

    Hi all,
    I use a commandButton to undo changes in editable rows of a table. This is the code I use in the action() method of my button:
    DCIteratorBinding iter = (DCIteratorBinding)getBindings().get("queryVariablesFindAllIter");
    Row currRow = iter.getCurrentRow();
    if (currRow != null)
    currRow.refresh(Row.REFRESH_UNDO_CHANGES);
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.getMasterDetail1());
    However the code fails at the refresh() method with the following error:
    javax.faces.el.EvaluationException: java.lang.UnsupportedOperationException: refresh()
    How can I overcome this error? Is there any other way to refresh the row?

    I use session EJBs. I'll see if i can do something similar, otherwise i'll re-execute the iterator

  • Undoing changes made by support package application

    Hi
    Is there a way to undo changes made to repository objects and dictionay objects after you have imported a support package.
    Let us consider this with an example. Let us assume that there is a standard SAP report called S1 v1. Which after a support package application and after confirming the queue it becomes S1 v2. Now if for some reason after say 2-3 days we are not comfortable with S1 v2 and want S1 v1 again can we get back the old standard SAP report. If so then how?
    Also if there is a change made in a Dictionary object, is there a way to revert these changes on a similar line? Id so then how.
    Thanks
    Rohan

    Hi Lokesh,
    If you have maintained versions for perticular report then you can revert it back to the previous version.
    Ask your ABAPer for the same.
    You can always retrieve the previous version if you have maintained the version.
    It is applicable for the dictionary objects too, but you may loose data in case of changing version for database tables.
    Regards,
    Payal

  • Undo changes from a Change Request

    Hi all,
    How can I undo changes that are included in a certain CR ?

    Hi,
    Go to version magmt. Viz. Se38-->Pgm name->Display, The Utilities -
    >Version-->Version Mgmt->Put a tick in the check box of the previous request ( or any request whose source contents are to be retrieved ) & the Version--->retrieve.
    I hope this helps,
    Regards,
    Raju Chitale

  • HT201263 is it possible to undo changes to your iphone content and settings after running the restore from backup function?

    is it possible to undo changes to your iphone content and settings after running the restore from backup function?

    no

  • Windows 8.1 Update Failure : We couldn't complete the updates, Undoing changes

    Yesterday I built my first computer and I installed Windows 8.1 on it, everything was running perfectly fine until today. This morning I had an update notification and I installed it, about half way through the update an error occurred and it said it couldn't
    complete the update and it was undoing the changes. I left it on that screen for about an hour and nothing happened. I tried finding what the update was, so I went to recently installed updates, and there was about 40 of them from just today. Whenever I tried
    to uninstall any of the updates, it said error, preventing me from deleting any of the updates. I was wondering if anyone could help me try to uninstall/re-install this update.

    Hi Kmanxx,
    The update failure might be caused by a variety of reasons such as connection issues, incomplete Components and firewall. For troubleshooting, specific error code of the failure update will be helpful.
    You also could find installation failure events and error code in log files, such as WindowsUpdate.log (C:\Windows\ WindowsUpdate.log) and CBS.log(C:\windows\logs\cbs\cbs.log). Here you first want to search for “error” in your logs. This will search for
    Error entries. Focus on the day the installation attempt occurred. Refer to your time line of update log, find what error happened. Of course you could post your log content and we’d like to give it a look.
    How to collect the specific error code of failure update:
    We can do this by viewing your update history.
    1. Swipe in from the right edge of the screen (or, if you're using a mouse, pointing to the lower-right corner of the screen and moving the mouse pointer up), and tap or click Settings.
    2. Tap or click Change PC settings, and then Update and recovery.
    3. Tap or click View your update history.
    View failed update error code.
    For your reference:
    Unable to install updates in Windows Vista, Windows 7, Windows Server 2008 and Windows Server 2008 R2(also applies to Windows8.1):
    http://support.microsoft.com/kb/2509997/en-us
    If all updates fail to install on a particular client or if for example you cannot install a Service Pack:
    http://blogs.technet.com/b/roplatforms/archive/2011/04/28/installation-failures-cbs-store-corruptions-uncommon-issues-and-troubleshooting.aspx
    Fix Windows corruption errors by using the DISM or System Update Readiness tool:
    https://support.microsoft.com/kb/947821?wa=wsignin1.0
    Regards

  • Undoing changes in ApplicationModule

    Hello,
    I want to set restore points for the changes in ApplicationModules. E.g. I've got a main screen and second dialog that runs in the same binding context as the main screen. Before I open the second dialog I want to set a restore point so that I am able to undo all changes that were made in the second dialog (but only if it is necessary).
    To achieve this I use AppModule.passivateStateForUndo() to create the restore point and AppModule.activateStateForUndo() for the restoring. At the first clance this works es expected. But now I found several errors.
    I use Master-Detail relation to set Country/District for a Person. After calling activateStateForUndo() this relation is broken. I haven't found out what is wrong but as soon as you try to change the District (which is Detail) the country (which is Master) changes to the first value. But this is only a minor error compared to the other I've found.
    The main screen consists of several panels (where only one at a time is shown). For the sake of perforkmance I don't initial all at the startup but only when they should get visible. When a panel should be initialized after a activateStateForUndo() I'll get a JBO-27122 Exception. It seems that some bind variables that are used for initialization have a wrong value.
    I've already found http://radio.weblogs.com/0118231/stories/2005/09/06/whyDoesActivestateforundoPerformARollback.html. But somehow I don't see a link between the rollback and the JBO-27122 Exception.
    Had anybody the same problem like me? Or at least a good hint?
    regards
    Jörg

    Can I reproduce a bug that we should fix, then, with a ReadOnly VO with passivation enabled, and a call to passivateStateForUndo/activateStateForUndo?

  • How to undo changes in Delivery after goods movement happened

    Dear All,
    I need to undo the manual changes done in delivery note but the goods movement and billing document has been created.
    Advise me regarding this.
    Thanks in advance
    Raghu

    Agreed with Amit. It doesnt make a sense that after doing PGI and billing user can change delivery document. This is standard functionality of SAP to avoid missuses of Sales documents. Like Delivery document you also can't change billing document or delivered items in sales order. For this you need to go reverse your whole sale process e.g Reverse billing VF11 > Reverse PGI VL09 change or delete delivery document VL02N and change or delete sale order VA02

  • Undo Changes in child table (using view link)

    Hello,
    My environment : Jdev 11.1.2.2.0
    I have a master-detail relationship which is linked using View Link. My requirement is to open a popup on double clicking the master row, and the user can add/delete/modify the child rows. Also I need to provide Ok/Cancel buttons. I need to Undo all the changes done for the child when the user clicks 'Cancel'. Can anyone please help to solve this?
    Regards
    Suresh

    First u need to a custom SelectionListener and make sure that RowSelection is set to single row. Add a method in the Managed Bean and make the row as current using the below java code
    public void Master_tableListener(SelectionEvent selectionEvent) {
    // This code is to make the selected row as current programatically
    ADFUtil.invokeEL("#{bindings.*YourViewObjectName*.collectionModel.makeCurrent}",
    new Class[] { SelectionEvent.class },
    new Object[] { selectionEvent });
    Row selectedRow =
    (Row)ADFUtil.evaluateEL("#{bindings.*YourViewObjectIterator*.currentRow}");
    // Tip : U will get the above EL's when u 1st drop the Master table on the page
    // Invoke the pop up programatically
    RichPopup.PopupHints ph = new RichPopup.PopupHints();
    p1.show(ph);
    After writing this code.. All u need to do is Drop the Detail Table on the Dialog of ur popup. This way u will get all the rows of the table. So, filter this table with the foreign key using some code..
    Or u can just drop the region containing the Detail Table with the Rollback and commit
    - Saif
    Edited by: Saif Khan on Sep 11, 2012 5:34 PM

Maybe you are looking for

  • I keep getting the iTunes error message "the item selected is not available in the UK store" how do i fix this please ?

    I keep getting the error message " The item selected is not available in the UK store" and i am not able to do anything else with iTunes, any idea how i fix this as it appears to now be restricting my account access across the Mac Book, iPad, iPhone

  • NWSSO and Digital Signatures

    This is a follow-up to Re-authenticate or provide additional credentials to access sensitive data. We are currently looking at implementing NWSSO. As far as I know, NWSSO can't be used as an external security product for Digital Signatures so that us

  • Is there any "offical bugs report" page?

    Hi, I am looking for the offical web page / email or something like that to report all bugs I can found on my phone. As far as I know, this is a discussion borad, not even a offical support page from Nokia. I tried to go to Nokia Care, and THEY NEVER

  • LR2 How to select one person in a picture

    New to LR and I'm trying to select just one person in a picture and remove everything else.  What tool do I use or should I use Photoshop thanks Mike

  • Get rid of "Cellular Data Account" iPad message

    How can I get rid of "Cellular Data Account" Now / Later message. It is incredibly annoying to have that pop up a number of times each day. I won't need the AT&T service until I travel and that's not for a few months.