L
Lisa
I have some code modeled after the sample invoice
(multiple tax rates) in the OnAfterChange of a detail
section. After a few lines of entry, I get an error:
"A run-time error has occurred. Do you want to debug? The
following error occurred: A script error occurred. The
number of calls to the OnAfterChange event for a single
update in the data exceeded the naximum limit.
File:script.js Line:378"
The code:
function setNodeTypedValue(xpath, value)
{
var xmlNode = getNode(xpath);
if (!xmlNode)
return;
// The xsi:nil needs to be removed before we set the
value.
if (value != "" && xmlNode.getAttribute("xsi:nil"))
xmlNode.removeAttribute("xsi:nil");
var convertedValue = convertJScriptNumberToXML(value);
// Setting the value would mark the document as dirty.
// Let's do that if the value has really changed.
if (xmlNode.nodeTypedValue != convertedValue)
xmlNode.nodeTypedValue = convertedValue;
}
Line 378 is the last line (xmlNode.nodeTypedValue =
convertedValue)
I am using SP1. Has anyone else encountered this error or
understand what it is complaining about?
Thanks.
(multiple tax rates) in the OnAfterChange of a detail
section. After a few lines of entry, I get an error:
"A run-time error has occurred. Do you want to debug? The
following error occurred: A script error occurred. The
number of calls to the OnAfterChange event for a single
update in the data exceeded the naximum limit.
File:script.js Line:378"
The code:
function setNodeTypedValue(xpath, value)
{
var xmlNode = getNode(xpath);
if (!xmlNode)
return;
// The xsi:nil needs to be removed before we set the
value.
if (value != "" && xmlNode.getAttribute("xsi:nil"))
xmlNode.removeAttribute("xsi:nil");
var convertedValue = convertJScriptNumberToXML(value);
// Setting the value would mark the document as dirty.
// Let's do that if the value has really changed.
if (xmlNode.nodeTypedValue != convertedValue)
xmlNode.nodeTypedValue = convertedValue;
}
Line 378 is the last line (xmlNode.nodeTypedValue =
convertedValue)
I am using SP1. Has anyone else encountered this error or
understand what it is complaining about?
Thanks.