Invalid argument (line 1015) (jsl_tree_c_v3_0_8.js)

TreeItem.prototype.init= function item_init()

{var i, img, strSrc, rootId= this.rootItem.itemID, itemId= this.itemID, aOffset=[], currentItem= this.parentItem;for(i= this.depth; i> 1; i--){if(this.rootItem.workPlaceFlag!=true)

currentItem.isLast()? strSrc= this.rootItem.treeIconObjs["empty"].src: strSrc= this.rootItem.treeIconObjs["line"].src;else

if(i!=2)

currentItem.isLast()? strSrc= this.rootItem.treeIconObjs["empty"].src: strSrc= this.rootItem.treeIconObjs["line"].src;else

strSrc= this.rootItem.treeIconObjs["empty"].src;img= document.createElement("img");img.setAttribute("src",strSrc);img.setAttribute("alt","");img.setAttribute("border","0");img.setAttribute("align","absbottom");aOffset[i]= img;currentItem= currentItem.parentItem;}

var item= this.rootItem.selectedItem;if(item){if(typeof(item)=="string"){if(item==this.eobj.getSignature())

this.rootItem.selectedItem= this;}

}

var returnArr=[], div, t, a, a2, td, tr, inp, c, newW;if(!this.rootItem.rootVisibleFlag&this.itemID==0){if(this.childItems.length){div= document.createElement("div");div.style.borderWidth="0px";div.setAttribute("id","i_div"+ this.rootItem.itemID+"_"+ this.itemID);div.style.display="none";

}

returnArr[0]= div;return returnArr;} else{var l, nodeStyle= this.rootItem.styleClass+"nodeStyle";t= document.createElement("table");t.setAttribute("id","i_tab"+ this.rootItem.itemID+"_"+ this.itemID);t.cellPadding= t.border= t.cellSpacing="0";t.className=nodeStyle;tr= t.insertRow(this.currentRowNumber++);

tr.setAttribute("id","i_tr"+ this.rootItem.itemID+"_"+ this.itemID);if(this.rootItem.treeTableFlag)

tr=this.addTabularData(tr);td=this.createNodeCell(tr);newW= this.rootItem.getColWidth(0);if(newW!=null&newW.W!=null){td.width=newW.W;td.style.width=newW.WS;}

var lineTR, lineTD=null, lineT= document.createElement("table");lineT.cellPadding= lineT.border= lineT.cellSpacing="0";lineTR= lineT.insertRow(0);lineT.style.display="none";document.body.insertBefore(lineT, document.body.firstChild);if(this.depth> 0){

if(lineTD==null) lineTD= lineTR.insertCell(0);for(l=0; l<aOffset.length; l++){if(aOffset[l]!= null) lineTD.appendChild(aOffset[l]);}

a=this.getJunctionLnk();}

if(odcTrees[this.rootItem.itemID].enableSelect){inp= document.createElement("input");inp.setAttribute("type","checkbox");

inp.setAttribute("id","ckbox"+ this.rootItem.itemID+"_"+ this.itemID);

inp.clickMethod= function(e){e=(e!=null)?e:event;odcTrees[ rootId].check(document.getElementById("ckbox"+rootId+"_"+itemId), itemId, e);

}

addStandardEvent(inp,"click", inp.clickMethod, true);

}

a2= this.getImageLnk();if(this.depth> 0){if(lineTD==null) lineTD= lineTR.insertCell(0);lineTD.appendChild(a);}

if(odcTrees[this.rootItem.itemID].enableSelect){if(lineTD==null) lineTD= lineTR.insertCell(0);lineTD.appendChild(inp);}

lineT.style.display="";if(lineTD!=null){var tw= lineTD.offsetWidth;lineTD.width= tw;lineTD.style.width= tw+"px";}

td.appendChild(lineT);lineTD= lineTR.insertCell(lineTR.cells.length);lineTD.appendChild(a2);if(this.childItems.length> 0){c= document.createElement("div");c.style.borderWidth="0px";

c.id="i_div"+ this.rootItem.itemID+"_"+ this.itemID;returnArr[1]= c;}

returnArr[0]= t;return returnArr;}

}

TreeItem.prototype.createNodeCell=function(tr)

{

var tdStyle=(!this.rootItem.treeTableFlag)?(this.rootItem.styleClass+"tdStyle"):(this.rootItem.styleClass+"tdTreeTabStyle");var td= tr.insertCell(this.currentCellNumber++);td.setAttribute("id","i_td"+ this.rootItem.itemID+"_"+ this.itemID);td.className=tdStyle;return td;}

Jsl_tree_c_v3_0_8.js (line 808)

TreeItem.prototype.open= function item_open(toClose)

{var i, len, divElem= this.getE('i_div'+ this.rootItem.itemID+'_'+ this.itemID);if(!divElem)

return;if(this.childItems!=nullthis.childItems.length>0&this.childItems[0]!="dummy")

{if(!divElem.innerHTML)

{var childItems=[], str;for(i= 0; i< this.childItems.length; i++)

{if(this.childItems[i]!=null)

childItems[i]= this.childItems[i].init();}

jsl_tree_c_v3_0_8.js (line 454)

Tree.prototype.drop= function(itemID, nativeEvent)

{var itemObj= this.a_index[itemID];

if(itemObj== null)

return;if(!itemObj.activeTreeEvent("onNodeDrop", nativeEvent))

returnfalse;if(this.a_index[itemID])

this.a_index[itemID].upstatus(true,"dropout");returnfalse;};Tree.prototype.toggle= function(itemID, nativeEvt)

{if(itemID== 0) return;var itemObj= this.a_index[itemID];if(!itemObj.isOpened){if(!itemObj.activeNodeEvent("onExpand",null,nativeEvt))

returnfalse;if(!itemObj.activeTreeEvent("onNodeExpand",null,nativeEvt))

returnfalse;}else{if(!itemObj.activeNodeEvent("onCollapse",null,nativeEvt))

returnfalse;if(!itemObj.activeTreeEvent("onNodeCollapse",null,nativeEvt))

returnfalse;}

this.getChildrenItems(itemObj);returnfalse;};Tree.prototype.contextmenu= function(itemID)

{var itemObj= this.a_index[itemID];if(this.oncontextmenu!= null)

this.oncontextmenu(itemObj);};Tree.prototype.expand= function(itemID)

{var itemObj= this.a_index[itemID];if(!itemObj.isOpened)

itemObj.open(itemObj.isOpened);};Tree.prototype.getChildrenItems= function(itemObj,expandFlag)

{if(itemObj.childItems!=null&itemObj.childItems.length>0&itemObj.childItems[itemObj.childItems.length-1]!=null){if(expandFlag=="expand"&itemObj.isOpened)

{return;}

elseif(expandFlag=="collapse"&!itemObj.isOpened)

{return;}

else

{if(this.crumtree)

{for(var i=1; i<this.a_index.length; i++)

{var tempObj= this.a_index[i];if(tempObj.isOpened)

{tempObj.open(true);break;}

}

}

itemObj.open(itemObj.isOpened);}

}

else

{var nIndex=0;var xmlNode= itemObj.xmlNode;var eobj= itemObj.eobj;var elementWrap= new ElementWrapper(xmlNode, true);this.Adapter.GetChildContent(elementWrap, eobj, 1);var preNodelen= this.alength;for(var i= 0; i< xmlNode.childNodes.length; i++)

{var node= xmlNode.childNodes[i];if(node.nodeType!= 1)

continue;new TreeItem(itemObj, node, nIndex);nIndex++;}

if(this.crumtree)

{for(var i=1; i<this.a_index.length; i++)

{var tempObj= this.a_index[i];if(tempObj.isOpened)

{tempObj.open(true);break;}

}

}

itemObj.open(itemObj.isOpened);this.Adapter.SetPropertyBinders(preNodelen);if(this.enableSelect)

{if(this.checkedItemArray[itemObj.eobj.ID]==null)

{itemObj.check('ONUNSELECT',true)

}

else

{itemObj.check('ONSELECT',true);}

}

}

}

jsl_tree_c_v3_0_8.js (line 345)

Tree.prototype.createHeader= function()

{

var headerStyle= this.styleClass+"headerStyle", nodeStyle= this.styleClass+"nodeStyle", nodeLableStyle=this.styleClass+"labelNormalStyle";var t= document.createElement("table");t.setAttribute("id","i_headerTab_"+ this.itemID+"_"+ this.itemID);t.cellPadding= t.border= t.cellSpacing="0";t.className=nodeStyle;var i, td, lbl, newW, tr= t.insertRow(0);tr.setAttribute("id","i_headTR_"+ this.itemID+"_"+ this.itemID);for(i=this.treeTableArr.length-1;i>=0;i--){td= tr.insertCell(0);td.setAttribute("id","i_TD_"+i+"_"+ this.itemID+"_"+ this.itemID);td.className=headerStyle;lbl= document.createElement("label");lbl.setAttribute("id","i_headTxt_"+i+"_"+ this.itemID+"_"+ this.itemID);lbl.className= nodeLableStyle;lbl.appendChild(document.createTextNode(" "+this.treeTableArr[i]));newW= this.getColWidth(i);if(newW!=null&newW.W!=null){td.width=newW.W;td.style.width=newW.WS;lbl.style.display="block";lbl.style.width=newW.WS;}

td.appendChild(lbl);}

return t;}

Tree.prototype.show= function()

{this.updateControl();}

Tree.prototype.updateControl= function()

{if(this.a_index==null||this.a_index.length==0){alert(action_obfcontrolrender_errormsg);return;}

this.rootItem.expand(0);}

Tree.prototype.openfolder= function(itemID)

{if(isNaN(itemID)||(itemID> this.a_index.length))

return;if(itemID==-1) this.rootItem.expandAllInternal(this.rootItem.itemID);if(itemID==0) this.a_index[0].open(this.a_index[0].isOpened);for(var j= 1; j< itemID; j++)

{var itemObj= this.a_index[j];itemObj.open(itemObj.isOpened)

}

}

---- long string ---- (line 736)

PC_7_K4P9SP3308PHE02B00CS372005_ODCTreeControlVar1.addTreeTable("PC_7_K4P9SP3308PHE02B00CS372005_treeTable1");

PC_7_K4P9SP3308PHE02B00CS372005_ODCTreeControlVar1.setupColumnAttributes(",0;,1;");

PC_7_K4P9SP3308PHE02B00CS372005_ODCTreeAdapterVar1.addNodeColumnData("Level1:leafTreeIdentifier;");

PC_7_K4P9SP3308PHE02B00CS372005_ODCTreeAdapterVar1.addNodeColumnData("Level2:leafTreeIdentifier;");

PC_7_K4P9SP3308PHE02B00CS372005_ODCTreeAdapterVar1.addNodeColumnData("Level3:leafTreeIdentifier;");

PC_7_K4P9SP3308PHE02B00CS372005_ODCTreeControlVar1.setStyleClass("tree");

PC_7_K4P9SP3308PHE02B00CS372005_ODCTreeControlVar1.rootVisibleFlag = false;

PC_7_K4P9SP3308PHE02B00CS372005_ODCTreeControlVar1.enableSelect = false;

PC_7_K4P9SP3308PHE02B00CS372005_ODCTreeControlVar1.addBehavior("onnodehighlight","func_500",new hX_5.JSFBehaviorGeneric("action:null"));

PC_7_K4P9SP3308PHE02B00CS372005_ODCTreeAdapterVar1.bind();

PC_7_K4P9SP3308PHE02B00CS372005_ODCTreeControlVar1.updateControl();