Reset Picklist Options to its original Values

Hi,
Is there a way to reset picklist options to its original values (when the page initially loaded) in CRM 2013/2015?
Depending on some business logic, I am removing some of the options from the picklist. Since in CRM 2011, after each save, the page was reloading, all the initial values were coming back and based on my logic I could remove some.
But in 2013/2015, since the page is not reloading any more, after i remove some of the options the first time, they never come back. Is there any way to get them back without explicitly adding them back in JavaScript?
Basically what I need is a mechanism to reset the picklist to its original state with the options available when the page got loaded.
Is there a method that would reset the picklist?
Thanks.
captainsina

Thanks for your reply.
I have tried this already. The problem is I do not want to call save from within my JavaScript. And if I use the following command: 
Xrm.Page.data.refresh(false);
It does not reload the page and does not bring optionset original values.
Thanks,
Sina
captainsina

Similar Messages

  • Resetting a form to its original values

    Does anybody know of a way to reset a form to its original values? In some cases JSF is displaying the last used form values, even after navigating to a different page and back again, instead of re-reading the values from the relevant backing bean.
    I'd imagine it involves iterating through the tree of UIView objects, but if anybody has some sample code that would much appreciated (and if anyone from the EG is listening, some kind of resetValues() method would be a useful addition to the API).
    -- Keith

    Each page in creator gets an AbstractPageBean which extends FacesBean and that contains the erase() method. This clears the state of the page forcing a reload of the page components. The docs make the following comment.
    "Erase previously submitted values for all input components on this page. This method MUST be called if you have bound input components to database columns, and then arbitrarily navigate the underlying RowSet to a different row in an event handler method."
    I find this comment very strange indeed. First, why hardwire you GUI to database components? What's the upside? It's not convenience because you can automate creation of datamodels from the database then do your binding. That aside, why hardwire the documentation to the database? Why not say "if the underlying state of bound variables changes independent of the UI you must call erase to relaod the change values". Anyhoo, I digress.

  • HT1695 how do i reset my ipod to its original settings

    how do i reset my ipod to its original settings

    Go here: Settings > General > Reset
    Troubleshooting 101
    Some topics covered
    -Basic troubleshooting steps
    -Hard reset instructions
    -Manual restore instructions
    -Hardware troubleshooting
    -Preventive Maintenance
    -Anti-theft & recovery tips
    -Battery-saving tips
    -Repair options
    -Contacting Apple
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • CO - After cost revaluation is it possible to see its original value?

    Hi SAP consultants !
    After cost revaluation is it possible to see both: the new cost (revaluated) and its prior value (before revaluation)? Despite I think it is not possible I searched for such information in some tables (COEJT, COEJL,  COEPL, and others) but find nothing.
    Thank you all,
    Naej
    Edited by: Naej on Sep 20, 2010 5:45 PM

    Eli, Matej thanks for your input. My question is pretty much answered as for as CO-CCA is concerned, in that it cannot be done.
    As for this requirement, I have decided to go another route in entering customer forecast data by using CO-PA. Entry of customer forecast data via SD schedule line (with MRP turned off) and having that data transferred to CO-PA.
    Thanks again,
    Ken

  • Repleting a value to its original value after depletion

    In my class I have:
    public int charge;This holds a value which set by me in the constructor when I instantiate the class in main(). This value represents a battery, and the value I give it at the start of my test represents a full battery. As the code runs, the value of charge is depleted incrementally (charge--). When charge equals 0, it requests the Charger class to "recharge" the battery and restore the charge to its value, which I assigned to it at the beginning.
    In my test, I will instantiate the class with the charge several different times, and I will assign each object's charge a different value since all batteries are not made equal and some last longer than others. However, what I am stuck with is figuring out how to use the recharge() method I have in my Charger class to completely restore the battery instantly (and not incrementally as it was depleted). Any ideas on what the recharge() method should look like?

    In your code you have:
    Charger charger;Later on you try to use charger. This should give you a null reference error, not a syntax error. If you have charger created someplace else, that statement overrides its declaration in the external scope and creates a local variable to hold a reference. You do not initialize that variable with any reference to an external object, nor create one in the scope.
    My way of thinking you need 3 classes:
    1 - Battery
    2 - Charger
    3 - Device (to use the Battery or consume the charge).
    The Battery will need to be used by the other 2 classes, as such, you need to be able to pass a reference of Battery to those. To do that you need your methods to accept a reference to Battery. This will make your Charger and Device classes able to work on all of your Battery objects.
    public void recharge(Battery b){
      b.currentCharge = b.maxCharge;
    public void useEnergy(Battery b){
      b.currentCharge -= 3; //some drain amount, I arbitrarily chose 3.
      if(b.currentCharge<0) b.currentCharge = 0;
    }

  • HT5661 Hello I have just sold my I phone 4 s on eBay I did a phone reset restoring it to its original factory settings now the person I sold it too is asking for my apple I'd and passwords which I don't want to give out as it has my bank details on. Pleas

    Hello I have just sold my I phone 4s on eBay I did a factory reset restoring it back to its origanal settings ready for next user now they are asking for my passwords and apple i d , which have my bank account details on! What do I need to do please help

    See if the information in this support document helps you. This is in addition to what deggie provided. It explains in a little more detail. http://support.apple.com/kb/TS4515

  • How can I reset my SX510HS to its original settings?

    I lent my camera to someone and IDK what they pressed but now i cant delete pictures or use the wifi funtion. Also when i put it on automatic it goes onto something different and i have to put it on SCN for it to actually be Auto it is really weird.I would really appreciate it if someone could answer ASAP

    Menu>Tools>Reset All.

  • Will all of my downloads be deleted if In reset Firefox back to its original default?

    Firefox is slow to start and when it does the system will lock up and I receive a message that "Firefox Mozilla is not responding" This is happening quiet frequently, everyday actually. I want to restart to see if this will fix the problem and I've read your articles and what will be deleted but I'm still not clear on a couple of issues.
    1. Will all my downloads, i.e., pictures, resumes, etc be deleted if I reset?
    2. I have just downloaded a new security system. Will this be deleted?
    3. I understand about the saved history and tool bar which I can re-install.
    4. Is there any way to speak to a technician by telephone?
    Your prompt response is appreciated. Tony Morales

    Files that you have downloaded will always be stored in the folder where you saved them an the actual files will never be removed when you reset Firefox.<br />
    I don't know for sure if you keep the download history as part of the history that is imported when you reset Firefox.<br />
    What kind of issues do you have with the current Firefox profile folder that you want to reset Firefox?
    Is that only that Firefox takes long or too much time to start?
    Did you try Safe Mode?
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    It is possible that your security software (firewall, anti-virus) blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full, unrestricted, access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *https://support.mozilla.org/kb/fix-problems-connecting-websites-after-updating

  • Problem of h:selectOneMenu it is popping back to original value

    I have a dataTable in which one column is a <h:selectOneMenu> and the required attribute is false.
    There is a inputText in another column and the required attribute is true.
    Whenever I change the <h:selectOne> option to null (that is blank option) from a string option and delete the inputText box value and click the submit button the
    <h:selectOneMenu> jumps back to its original value though I placed the required to false and a required message for inputText box.
    Required Message that pops out for inputText is expected but the <h:selectOneMenu> popping back is not desired. How can I avoid it.
    Regards
    Sandeep

    Please do not double post.
    [http://forums.sun.com/thread.jspa?threadID=5330114]

  • Function  module to convert ( partner function - vbpa-parvw to origin value

    hi
    i need to use the function module which can conver the vbpa - parvw : partner function to its original value in the programe, can any one tell the which function module need to be used for this.

    Use the following conversion routines.
    CONVERSION_EXIT_PARVW_INPUT
    CONVERSION_EXIT_PARVW_OUTPUT
    Edited by: Naren Someneni on Feb 22, 2008 8:30 AM

  • 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

  • HT4623 how do i reset a jailbroken i phone to its original settings ?

    how do i reset a jailbroken i phone to its original settings ?

    Use DFU mode. Google is your friend here for instructions.
    Good luck.

  • How do I reset my new MBA to its original factory setting?

    I just purchase a 13" MBA 2011 and during set-up I somehow enabled the MBA to share everything on my iMac. How do I return the MBA to its original state out of the box so that I can redo the setup process and not have to share every program that my iMac has? Thanks a bunch!

    When I had  this situation, I made a specific back up on time machine and used that version as a basis of configurating my MBA.
    hope have helped,
    Ricardo

  • Macbook dock keeps on going to its original settings

    hi guys... my Macbook dock keeps on going to its original settings after irestart my dock and computer....It gets things i dont want there and takes things out i want
    help

    To try and fix boot looping:
    First of all remove the battery from your phone or tablet, and wait for almost 2 to 3 minutes. What if your device does not have removable battery? Well, then you can power off it for almost 4 to 5 minutes.
    Now you need to boot into Stock Recovery Mode by Pressing and Holding the Volume Up+Home+Power buttons at the same time for a few seconds until you see the Android System Recovery menu on your screen.
    You’ll be using the Volume Up/Down to switch between different options and Power button to select your desire option.
    Now select the Wipe data/Factory Reset option and confirm it.
    Additionally, take also the following actions:
    Wipe cache partition
    Go to Advance and Wipe dalvick cache Now Go back to the main Recovery menu and Select the option Reboot System .

  • How can I get a tab to open in an oversize jpg image in its original size with scroll bars when I click on a link?

    I have a small program for storing my genealogy names and jpg images of the census pages where each name is found. The images have a thumbnail link that opens in a new tab to view the actual oversized census page. In the new tab the census page is small and not readable. How do I get the jpg image to appear in its original size with schroll bars so I can read the census in the firefox browser without using the zoom feature. It takes several clicks on the zoom to get the image to a readable size and that is time consuming, especially when I have several images opened.

    That works, thank you!
    Could I suggest that this feature (the ability to turn off or turn on the auto-resize of images) be part of the Options tab on Firefox? I think it's a setting that some users might want to change fairly often--even toggle back and forth on. It's a little annoying to have to go into about:config every time to do this.

Maybe you are looking for