Sunday, 4 October 2015

showModalDialog in MSCRM

function ADD() {

    var _fullName = typeof _ApplicationRecs[i].attributes.new_fullname != "undefined" ? _aApplicationRecs[i].attributes.new_fullname.value : "";
    return typeof _printerConfigs[0].attributes.new_printername ? _printerConfigs[0].attributes.new_printername.value : null;
    if (_tAC = "" && _COde)
        {
        alert(_tAC == "" ? "Vat not found." : (_COde == "" ? "UK of Operation not found for this servicecategory." : "values not found for this missions."));


       

        var _width = 500;
        var _height = 600;

        var _left = (screen.width / 2) - (_width / 2);
        var _top = (screen.height / 2) - (_height / 2);
        var _URL = XrmServiceToolkit.Soap.GetServerURL() + "/WebResources/hppscm_/Webpages/data.html";
        var _pageProperties = 'dialogWidth=' + _width + 'px; dialogHeight=' + _height + 'px; dialogLeft=' + _left + 'px; dialogTop=' + _top + 'px;';
        window.showModalDialog(_URL, objectArray, _pageProperties);
}

No comments:

Post a Comment