locked
How do I fire an event after save? (CRM 2013) RRS feed

  • Question

  • The on save event doesnt work. The on load event doesnt work. This used to be the way to do it in 2011.. Call backs do not work. Intercepting the save does not work.

    I want to fire the Xrm.Page.data.refresh() event after i save a record to refresh web resources on the form, which do not refresh after I save a record.

    How do I achieve this in 2013?

    Thanks,
    Jon

    Friday, January 10, 2014 11:22 PM

All replies

  • http://community.dynamics.com/crm/b/salimadamondynamicscrm/archive/2013/12/04/crm-2013-client-api-save-amp-refresh.aspx


    gruss Daniel Ovadia MBSS - Microsoft Dynamics CRM MCNPS

    • Proposed as answer by Daniel Ovadia Tuesday, January 21, 2014 9:46 AM
    Saturday, January 11, 2014 10:16 PM
  • Try this code to refresh your webresource

    var wrControl = Xrm.Page.ui.controls.get("WebResource_Name");

    wrControl.setSrc(wrControl.getSrc());


    Our Website | Our Blog | Follow US | My Facebook Page | Microsoft Dynamics CRM 2011 Application Design
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    • Proposed as answer by Daniel Ovadia Monday, March 2, 2015 3:06 PM
    Sunday, January 12, 2014 5:39 PM
    Moderator
  • hi,

     I think that   your page  is refreshing before the save operation .

     I suppose  you must disable the au ,to save option in the settings if u want

    then  u will write JavaScript on save  for the refresh code

      might It  will be helpful.

     

     

    Saturday, January 18, 2014 7:51 AM