try{ if (apex.spreadsheet==null || typeof(apex.spreadsheet)!="object"){apex.spreadsheet = new Object()} function ws_Spreadsheet (pThis){ this.Spreadsheet = $x(pThis) this.numberRows = false; this.numberCells = false; this.currentRow = false; this.classArray = false; this.currentCell = false; this.currentForm = false; this.currentCol = false; this.currentColType = false; /**/ this.Reset = Reset; this.CellInit = CellInit; this.SpreadInit = SpreadInit; this.control = function(pProcess,p_X01){ var lRequest = new apex.ajax.ondemand(pProcess, function(){ /* start the return function */ var l_s = p.readyState; if(l_s == 1||l_s == 2||l_s == 3){ }else if(l_s == 4){ gReturn = p.responseText; $s('apexir_CONTROL_PANEL_DROP',gReturn); $x_Show('apexir_CONTROL_PANEL_DROP'); if(p_X01 == 'SHARING'){ window.g_Shuttlep_v01 = new dhtml_ShuttleObject('apexir_OTHERS_MAY_VIEW_LEFT','apexir_OTHERS_MAY_VIEW_RIGHT'); window.g_Shuttlep_v02 = dhtml_ShuttleObject('apexir_OTHERS_MAY_EDIT_LEFT','apexir_OTHERS_MAY_EDIT_RIGHT'); } }else{return false;} /* end the return function */ } ); lRequest.ajax.addParam('x01',p_X01); lRequest._get(); } this.actions = function(pAction){ var lRequest = new apex.ajax.ondemand('websheet', function(){ /* start the return function */ var l_s = p.readyState; if(l_s == 1||l_s == 2||l_s == 3){ }else if(l_s == 4){ websheet_return(p); }else{return false;} /* end the return function */ } ); websheets_action(lRequest,pAction); } this.cells = {} this.cells.edit = function(pThis,pThat){ gReport.controls.value = that.currentCell.innerHTML; that.currentCell.innerHTML = ''; gReport.controls.lov = true; pThat.onclick='' gReport.controls.lov_dom = pThat; gReport.controls.col_lov(pThis); } return; function SpreadInit(){ var lRows = this.Spreadsheet.rows; this.numberRows = lRows.length; if(!!this.numberRows[0]){ this.numberCells = lRows[0].cells.length; var EditableCol = []; var EditableColN = []; var lDivs = lRows[0].getElementsByTagName('DIV'); for (var i = 0;i