2015年2月12日 星期四

CRM 2011 Close the form in JavaScript

CRM 2011 Close the form in JavaScript

JavaScript:
  1. function OnSave()
  2. {
  3. Xrm.Page.ui.close();
  4. }
  5.  
  6.  
  7. /*** Other Sample ***/
  8.  
  9. function SaveAndClose()
  10. {
  11. Xrm.Page.data.entity.save();
  12. if (parent.opener != undefined)
  13. {
  14. window.parent.close();
  15. }
  16. else
  17. Xrm.Page.ui.close();
  18.  
  19. }

沒有留言:

張貼留言