Javascript ReferenceError: Value is not defined
Javascript ReferenceError: Value is not defined
我的以下函数在以 Dynamics
形式触发时遇到以下错误。
ReferenceError: heightStart is not defined
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 Resource File Handler 映射传入的值。
Parameter
表单似乎将 heightStart 解释为变量。尝试将其用引号括起来; "heightStart"
你必须用双引号传递参数,比如“heightStart”
因为你传递了 executioncontext 所以函数应该是
function(executioncontext, type) ....
我的以下函数在以 Dynamics
形式触发时遇到以下错误。
ReferenceError: heightStart is not defined
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 Resource File Handler 映射传入的值。
Parameter
表单似乎将 heightStart 解释为变量。尝试将其用引号括起来; "heightStart"
你必须用双引号传递参数,比如“heightStart”
因为你传递了 executioncontext 所以函数应该是
function(executioncontext, type) ....