Javascript ReferenceError:值未定义

问题描述 投票:0回答:2

我的跟随函数在以Dynamics形式触发时遇到以下错误。

ReferenceError:未定义heightStart

function Start(type) {
    debugger;
    alert("Start | type: " + type);
    if (type == "heightStart") {
        var height = Xrm.Page.getAttribute("ccc_heightincmstart").getValue();
        if (height != null && height != "") {
            GetChildInfo(height, type);
        }
        else {
            Xrm.Page.getAttribute("ccc_heightpercentilestart").setValue("");
        }
    }
}

我可以知道如何解决此错误吗?

type是随Web资源文件处理程序映射传入的值。enter image description here

javascript forms reference dynamics-crm microsoft-dynamics
2个回答
0
投票

Parameter形式似乎将heightStart解释为变量。尝试将其包装在表格中的引号中; "heightStart"


0
投票

您必须传递带有双引号的参数,例如“ heightStart”

enter image description here

Read more

© www.soinside.com 2019 - 2024. All rights reserved.