none
Which event is fired on close of a form RRS feed

  • Frage

  • Hi,
          I had been asked a question like how will you give a javascript alert on clicking close('X') button of an account record form?
          If anyone knows please let me the answer.

    Regards,
    sujatha Bhumireddy
    Montag, 22. Februar 2010 16:54

Antworten

  • Hi Sujatha,

    you can try to add the following code to your OnLoad script. However, as ckeller already mentioned it is offically not supported.

      window.attachEvent("onunload",dispose);   

      function dispose()  
      {  
        alert("Window is closing");
      }



    Best regards,
    Nils
    Montag, 22. Februar 2010 21:13
  • Hi,

    you can post your english crm questions here: http://social.msdn.microsoft.com/Forums/en-US/crm/threads

    Best regards,
    Jürgen


    Jürgen Beck

    Dipl. Kfm./Wirtschaftsinformatik
    MVP, MCSD.NET, MCITP DBA, MCDBA, MCSE
    Microsoft Certified Business Management Solutions Professional
    Microsoft Certified CRM Developer
    Microsoft Certified Trainer

    ComBeck IT Services & Business Solutions
    Microsoft Gold Certified Partner
    Microsoft Small Business Specialist

    Developing & Supporting Business Applications from small business to big enterprises covering scores of sectors

    http://www.combeck.de
    Samstag, 15. Mai 2010 11:17
    Moderator

Alle Antworten

  • Hi Sujatha,

    IMHO it is not possible to detect this. At least the client programming model of Dynamics CRM doesn't provide you the information.
    Montag, 22. Februar 2010 18:12
  • Hi Sujatha,

    you can try to add the following code to your OnLoad script. However, as ckeller already mentioned it is offically not supported.

      window.attachEvent("onunload",dispose);   

      function dispose()  
      {  
        alert("Window is closing");
      }



    Best regards,
    Nils
    Montag, 22. Februar 2010 21:13
  • Thank you Nils. It worked.


    Dienstag, 23. Februar 2010 03:53
  • Hi,

    you can post your english crm questions here: http://social.msdn.microsoft.com/Forums/en-US/crm/threads

    Best regards,
    Jürgen


    Jürgen Beck

    Dipl. Kfm./Wirtschaftsinformatik
    MVP, MCSD.NET, MCITP DBA, MCDBA, MCSE
    Microsoft Certified Business Management Solutions Professional
    Microsoft Certified CRM Developer
    Microsoft Certified Trainer

    ComBeck IT Services & Business Solutions
    Microsoft Gold Certified Partner
    Microsoft Small Business Specialist

    Developing & Supporting Business Applications from small business to big enterprises covering scores of sectors

    http://www.combeck.de
    Samstag, 15. Mai 2010 11:17
    Moderator