locked
Rollup 10 breaks on Outlook Modeless Dialog RRS feed

  • Question

  • We have a process to close an opportunity. This code hasn't changed in years, but since we upgraded to CRM 2011 Rollup 10 the following line of code started erroring with "Object doesn't support this property or method".

    Any ideas why this line of code is suddenly breaking, or how I can fix it?

    • var $v_0 = Mscrm.Display.$3U(width), $v_1 = Mscrm.Display.$3W(height);

    Here it is in context:

                // Open the Close Dialog as a Modeless Dialog Window
                if (Xrm.Page.context.isOutlookClient()) {
                    var width = Mscrm.Display.$3T(450);
                    var height = Mscrm.Display.$3S(420);
                    var $v_0 = Mscrm.Display.$3U(width), $v_1 = Mscrm.Display.$3W(height);
                    if (window.LOCID_UI_DIR === "RTL") $v_0 = window.screen.availWidth - $v_0 - width;
                    var $v_2 = "";
                    $v_2 = "dialog + $v_0 + "px;dialog + $v_1 + "px;";
                    customWinParams = "dialogWidth:" + width + "px;dialogHeight:" + height + "px;" + $v_2 + "help:0;status:1;scroll:0;center:1;resizable:no;";
                    closeDialog = safeWindowShowModelessDialog(oUrl, document, customWinParams);
                }
                else {
                    closeDialog = openStdDlg(oUrl, document, 450, 420, false, true);
                }
    

    Thanks!

    Friday, October 26, 2012 4:53 PM

Answers

All replies