Reset View to its initial state

Hi experts,
In my Webdynpro componenet I am navigating between different views. I am displaying data in one view by entering the selection fields. And, when I come back to this view the selection and the data remains in the view. I want the view to be displayed in its initial state every time. Is there any method to reset the view, to be handled in WDDOEXIT?
Thanks,
Sharmila

Hi Sharmila ,
Change the lifetime of the view to when visible.
and it will not decrease your performance .
Refer to this wiki for the same :
[http://wiki.sdn.sap.com/wiki/display/Community/HighperformanceofWebdynpro+ABAP]
Regards
Kuldeep

Similar Messages

  • This doesn't work - Reset Firefox to its default state "Click the menu button New Fx Menu and then click help Help-29 .

    You say this will help and first sentence under your "Reset Firefox to its default state." is worthless !!!!!!!!!!!!!!!!!!!!!!!

    https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems
    If you don't see the '''Reset Firefox''' button on the Troubleshooting Information page in Firefox, you may not be using the ''default=1'' Profile as listed in the profiles.ini file.

  • "Reset" declared variables to initialized state?

    Hiya!
    This might sound like a very stupid question, but I have not figured out a way to do this. I am working on a "personal information manager", where users can enter a date in a lovely swing textfield, it get's parsed to Integer and a GregorianCalendar is created with it. Once I created the Calendar, the TextFields are emptied again, but of course the Integer instance variables are still declared with the old values. This leads to the fact that a user could click "add date" again and a date is created without entering any number at all.
    My question:
    Is it possible to set declared variables back to the state they had when initialized? They should be "empty"...
    I can`t set them null...
    Thanks for your help, it's much appreciated!

    The only type of variable where "empty" has any meaning is for an empty string: "". Otherwise there is no empty. Objects are by default initialized to null, numeric primitives to zero, and I think chars to '' but I could be mistaken about that one - I never use chars. So if you're using Integers, they could either be null, or an Integer - nothing else.

  • LMS 3.1 on Solaris 10 - Reset all databases to initial state

    Hi,
    Is there a script that would clear all databases for LMS 3.1 on Solaris 10?
    I imported do CS some devices from a CSV file I exported from an old LMS 2.5 server we had. I get some very strange results when I ask to sync archive for instance. The devices I manually added work fine, but the ones I imported get stuck and the job takes forever to finish (10 hours in some instances, for 230 devices).
    I'd like to re-start from scratch without having to uninstall and reinstall LMS.
    Thanks,
    Jose Ribeiro
    MGS

    See this DOC for the commands to reinitialize all databases.

  • How to reset a particular view object alone to it's initial state??

    Hi,
    My application contains view objects with custom data source implementation. One of my requirement is to reset the particular view object alone to it's initial state. I can't use rollback since it is at Db Transaction level. I searched in forums and finally written the following coding to achieve it. It works fine during sometime but sometimes i am getting the exception oracle.jbo.DeadEntityAccessException: JBO-27101: Attempt to access dead entity in Person, key=oracle.jbo.Key[1 -10 ]
        public void resetPersonViewObject(String voName) {
            Iterator dirtyItr = this.getEntityDef(0).getAllEntityInstancesIterator(this.getDBTransaction());
            while (dirtyItr.hasNext()) {
                Object obj = dirtyItr.next();
                if (obj instanceof EntityImpl) {
                    EntityImpl entity = (EntityImpl)obj;
                    String state = null;
                    byte entityState = entity.getEntityState();
                    switch (entityState) {
                    case Entity.STATUS_INITIALIZED:
                        state = "Initialized";
                        // Don't do anything
                        break;
                    case Entity.STATUS_UNMODIFIED:
                        state = "Un-Modified";
                        // Don't do anything
                    case Entity.STATUS_DEAD:
                        state = "Dead";
                        // Don't do anything
                        break;
                    case Entity.STATUS_DELETED:
                        state = "Deleted";
                        entity.revert();
                        // entity.refresh(Entity.REFRESH_CONTAINEES);
                        break;
                    case Entity.STATUS_MODIFIED:
                        state = "Modified";
                        entity.refresh(Entity.REFRESH_UNDO_CHANGES);
                        break;
                    case Entity.STATUS_NEW:
                        state = "New";
                        entity.refresh(Entity.REFRESH_FORGET_NEW_ROWS);
                        entity.refresh(Entity.REFRESH_REMOVE_NEW_ROWS);
                        break;
                    System.err.println("State : " + state);
            getDBTransaction().clearEntityCache(getEntityDef(0).getFullName());
            getViewObject().clearCache();
    }Questions:
    1. How to achieve my requirement? Is there any code correction required?
    2. How to reset the row which is actually deleted by the user?
    3. The sample code shown above is applicable for all the view object instances which are created from the same entity? What should i do if i want to reset a particular instance of a view object (I may use different instance of same view object at various screens whereas i want to reset only one)
    Can anyone help on this??
    Thanks in advance.
    Raguraman
    Edited by: Raguraman on Apr 24, 2011 8:48 PM

    Hi,
    As per my requirement, i use various instances of same view object in various dynamic tabs only. Since each tab has its own transaction, refreshing an EO of a particular transaction will refresh only the VO instances which comes under that transaction. So it will not cause any issue for my requirement i hope.
    Requirement: Need to reset a particular entity driven view object instances.
    Tried Schema: Departments table of HR Schema. Tried using the Application Module tester.
    Code i use:
        // Client Interface method of DepartmentsViewImpl
        public void resetView() {
            Iterator dirtyItr =
                this.getEntityDef(0).getAllEntityInstancesIterator(this.getDBTransaction());
            while (dirtyItr.hasNext()) {
                Object obj = dirtyItr.next();
                if (obj instanceof EntityImpl) {
                    EntityImpl entity = (EntityImpl)obj;
                    byte entityState = entity.getEntityState();
                    switch (entityState) {
                    case Entity.STATUS_UNMODIFIED:
                        break;
                    case Entity.STATUS_INITIALIZED:
                        break;
                    case Entity.STATUS_DEAD:
                        break;
                    case Entity.STATUS_DELETED:
                        entity.refresh(Entity.REFRESH_WITH_DB_FORGET_CHANGES);
                        break;
                    case Entity.STATUS_MODIFIED:
                        entity.refresh(Entity.REFRESH_UNDO_CHANGES);
                        break;
                    case Entity.STATUS_NEW:
                        entity.refresh(Entity.REFRESH_FORGET_NEW_ROWS);
                        entity.refresh(Entity.REFRESH_REMOVE_NEW_ROWS);
                        break;
            getDBTransaction().clearEntityCache(getEntityDef(0).getFullName());
            getViewObject().clearCache();
    Issue i have:
    1. Add a blank row (Soon transaction has become dirty). Call the resetView() client interface. It gives me JBO-25303: Cannot clear entity cache model.eo.Departments because it has modified rows
    2. Modify any row and then delete the same row. Call the resetView(). It gives me JBO-27101: Attempt to access dead entity in Departments, key=oracle.jbo.Key[10 ]
    [NOTE:  Above code works fine when for simple deletion of rows, modification of existing rows, new rows]
    Edited by: Raguraman on Apr 24, 2011 8:48 PM

  • Is factory reset for Windows 7 gonna restore my BIOS too to its original state when I bought it?

    I am using Windows 8 now, I bought my laptop in JULY 2012. It came with Windows Home Premium and I have the recovery disks for Windows 7. I plan to factory reset my laptop because of my disappointment with Windows 8 and supprt for Windows 8.
     I want to know that if the 'Factory Reset' will restore the laptop BIOS to its original state. I mean I have my BIOS updated to the latest. I want it to go back to its old state. Also how long does the Factory Reset takes? I own HP DV6T 7000 Quad edition with 32gb mSSD.
    Intel RST doesn't work no matter what, my HDD is shown in non-RAID and there is no way I can change it to RAID. So my last option is to try the Factory Reset and see if it helps. I am pretty sure  IRST will work only if my BIOS is restored to the original state along with everything so it starts detecting my HDD in RAID.
    This question was solved.
    View Solution.

    Hi,
    A factory image recovery will not affect the BIOS version or its current settings. The amount of time that the factory image recovery takes wil depend on which type of recovery media you have. If you have usb recovery media than it will probably take perhaps thiry minutes. It you use a recovery disk set then the recovery could take a few hours to complete.
    Once you start the recovery do not touch the keyboard.
    Make sure that the wireless is turned on before you commit to the recovery.
    Best regards,
    erico
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Resetting a form to default state

    I have a form with lots of swing components(JtextFields,JRadioButtons,JComboBoxes), and I want to be able to "reset" the form back to its' original state(i.e. blank textfields,no selected radiobutttons,comboboxes with defaults showing). Is there a single method to update the entire form to its' original state? Thanks.

    hello,
    done this before,
    what i did was, i create a function, in this function i have all the add functions i.e adding the objects to the container. everytime i want to reset the form, i call the removeAll() function which clears the frame from all components and then i call the function that adds the components to the frame example
    public someClass()
    addComponents();
    //actionPerformed method for a button that resets
    this.removeAll();
    addComponents();
    public void addComponents()
    //add all the stuff to the container
    }hope it makes some sense
    asrar

  • Is initial state of a Java stack frame stored somewhere

    In My IDE (Eclipse), debugger has an option "Drop to Frame" for each method in the method stack, which when clicked resets the stack to the initial state of the selected method.
    How is the operation achieved?
    Is this an potion from JDB or IDE would have stored the initial state of all method stack frames?
    How could have static variables for other classes got reset?

    http://www.coderanch.com/t/485739/Java-General/java/initial-state-Java-stack-frame

  • Design Studio - put initial state on chart

    Hello,
    I work with DS1.3 SP01, and I have a problem with putting initial state on chart after RESET action from a button.
    Initially I was inspired with Zahid’s post http://scn.sap.com/thread/3566300, but it’s seems to be other scenario and needs.
    I this case, I have a tabstrip with 5 pages, where each presents pie charts. Once we click on one of the chart, a crosstab is displayed for each of them. When I click on button RESET, whatever a page is currently displayed I want to clear all filters for all my charts. During a RESET I hide all cross tabs – so I don’t have to liberate datasources linked to crosstabs.
    My code for RESET button seems to work quite ok, cause it gives me a chart with initial state, ready for next selections…. in condition that I do not click on RESET just after 1st click on pie chart.
    For example :
    - on page 1 : click on pie chart 1, then I go to the page 2/ click on chart 2  - come back to page 1 => click reset (chart 1 - initial state, chart 2-selection is highlighted)
    or
    - on page 1 : click on pie chart, then I add additional filter from panel_filter for all charts => click reset, works fine for all charts.
    If I try to click on RESET just after an action of click on the pie chart, I would say it stays locked, and my RESET do not put him in initial state. But If I click again, it works ! I would like to understand what is happening just after click on pie chart, why the state of chart seems to be "locked" ?
    My code:
    DS_1.clearAllFilters();
    CHART_1.getSelectedMember("XEMPLOYEE").internalKey;
    DS_2.clearAllFilters();
    CHART_2.getSelectedMember("XCOUNTRY").internalKey;
    // put invisible all cross tab from different pages                
    CROSSTAB_1.setVisible(false);      
    Thank you
    Beata

    Hi Beata,
    why you need those bold lines?
    My code:
    DS_1.clearAllFilters();
    CHART_1.getSelectedMember("XEMPLOYEE").internalKey;
    DS_2.clearAllFilters();
    CHART_2.getSelectedMember("XCOUNTRY").internalKey;
    // put invisible all cross tab from different pages               
    CROSSTAB_1.setVisible(false);
    I do not see reason for those. I suspect, when you clear the filters, those lines can cause some issues as the clearfilters call is for sure triggering event to chart and then the selection is cleared.

  • Initial State of Navigation Panel

    Hi all,
    I have an issue with an SAP portal ivew linked to a guided procedure. When the user clicks on it the navigation panel on the left is closed. We have to tried to set the proposerty "Initial State of Navigation Panel" to "Open"  but it did not work (although we tried another iView and it did work). Can you please indicate what could be the possible reason for overriding this property? Thank you in advance.

    Hi SAPer,
    Did you try looking at the "Initial State of Navigation Panel" value of your iView in question in the Portal role? Assuming this is a delta-link copy, this property might have its delta-link inheritance broken through modification prior to this.
    Cheers.
    Best Regards,
    Zhi Liang

  • HT5824 my contact list does not update to its current state. After I sync to Itunes or after I back up to I cloud  Also I did a doccuments and data restore and it still didnt change. How do I fix this?

    My contact list does not update to its current state after I sync it to itunes or back it up to icloud  I did a documents and data reset and the contact list still didnt change.. How do I fix this?

    Welcome to the Apple Community.
    First check that all your settings are correct, that contact syncing is checked on all devices (system preferences > iCloud on a mac and settings > iCloud on a iPhone, iPad or iPod).
    Make sure the contacts you are adding are added to your 'iCloud' group and not an 'On My Mac', 'On My Phone' or other non iCloud group (you can do this by checking in groups), non iCloud contacts will not sync.
    If you are sure that everything is set up correctly and your contacts are in the iCloud group, you might try unchecking contact syncing in the iCloud settings, restarting your device and then re-enabling contact syncing.

  • Spry Blind Effect - Initial state closed

    Hi,
    I was wondering if its possible to have the Blind effect, set to be closed initially and then "Blind down"?  I've tried setting the "Blind from" fields but it doesn't seem to work.  The div container is always open initially then toggles up and down properly, I'd just like to be able to set it to be 'closed' initially. Is there a way to do this?
    Note: I have a table inside the container div, not sure if it affects it but it does seem to work when I toggle so, my issue is simple to have it on that closed state initially.
    Thanks for your help!
    Al

    Hi Ben,
    Thanks for your reply, yup I already saw that page but didn't seem to work
    with my case, so I just decided to use several "colapsable" widgets and that
    seemed to work, but was interested in knowing if there existed a way to have
    the Blind behavior start with the initial state being closed.
    Frank

  • How can I set the initial state of the PGCTR0 out pin?

    Hi,
    I have a 6115 board, and I am trying to generate a pulse train on PGCTR0 with an external clock. The external clock signal is connected to PFI1 and the PGCTR0 is gated through PFI0. The PGCTR is reset at the end of each run.
    The problem is that the initial state of the PGCTR out pin changes from run to run, but I'd like it to stay high after reset. Any help is appreciated. THanks.
    feng

    Hi Feng,
    The default output state of your counters should be high depending on your board. If you run a counter application, and the line ends in a low state it will stay low. One way to change the output state is to not only reset the counter but reset the board (see knowledge base linked below). The other way is to treat it like a digital line (see second link below). This is probably the best method. This method should allow you to read the value and change it using a couple software calls. Instead of disabling the counter, I would reset the counter since you just want to reset the state. This method is also a decent workaround because you are resetting the counter anyway. Hope that helps. Have a good day.
    Default State of Counter Output Lines
    on E Series Data Acquisition Devices
    http://digital.ni.com/public.nsf/websearch/008995633E33E47486256B5F00034436?OpenDocument
    Using the General Purpose Counter (GPCTR) on the Data Acquisition (DAQ) Device as a Digital Line http://digital.ni.com/public.nsf/websearch/B8A49A4E33F38AB686256B610061DC6D?OpenDocument
    Ron

  • HT1414 my ipod wont charge and i have used different chargers for it is it possible to reset it while its dead?

    my ipod wont charge and i have used different chargers for it is it possible to reset it while its dead?

    I do not know what you mean by charger. Cable?
    Not Charge
    - See:      
    iPod touch: Hardware troubleshooting
    iPhone and iPod touch: Charging the battery
    - Try another cable. Some 5G iPods were shipped with Lightning cable that were either initially defective or failed after short use.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar                          

  • HT5312 I am trying to reset my security questions, I cannot locate the option for a rescue email address with My Apple Id. When I click on the button to reset the security questions, it states it is sending an email to the primay email address, but it doe

    I am trying to reset the Security Questions as I have forgotten them, when I have logged into My Apple Id, and click on the button to reset the Security Questions, it states it is sending an email to the Primary Email address. I do not have the option to input a Rescue Email address, the only option I have is to input an Alternate Email address, which I have done so.
    Also when I have tried to book an appointment throuth Online Support, I have not successful, I have rung a telephone number provided by the Mac Store in Perth, Australia and the reply provided is that we are closed. I was given to understand that Apple provided 24/7 Support to their users.

    Hot N Spicy wrote:
    I am trying to reset the Security Questions as I have forgotten them,
    Forgotten Security Questions / Answers...
    See Here > Apple ID: Contacting Apple for help with Apple ID account security
              Ask to speak with the Account Security Team...
    Or Email Here  >  Apple  Support  iTunes Store  Contact
    More Info >  Apple ID: All about Apple ID security questions
    Note:
    You can only set up and/or change a Rescue Email Before you forget the questions/answers

Maybe you are looking for