obj.onCellClicked = function(event, column, row) {
switch (parseInt(column)) {
case colExp:
myExpRows[row] = ( (myExpRows[row] == 1) ? 0 : 1);
var visArray = toggleExpandCollapse();
if (visArray.length > 0) {
obj.setRowCount(visArray.length);
obj.setRowIndices(visArray);
}
break
case colAccount:
popUpVndActNb( column, row );
break;
case colVendor:
popUpVendorName( column, row );
break;
case colContract:
popUpVndCntNb( column, row );
break;
case colSched:
popUpSchedule( column, row );
break;
}
};
obj.onCellDoubleClicked = function(event, column, row) {
switch (parseInt(column)) {
case colVendor:
window.open("displayVendor.asp?PID=" + obj.getCellValue( colVID, row ), "Vendor");
break;
case colContract:
window.open("viewVendorContractDetails.asp?VndCntID=" & cntid & "&PID=" + obj.getCellValue( colVID, row ) );
break;
}
};
case colVendor:
timer = setTimeout("popUpVendorName(" + column + "," + row + ")", 500); // timer to allow read for double-click
break;
case colVendor:
window.clearTimeout(timer); // cancel timer if one was started
window.open("displayVendor.asp?PID=" + vid, "Vendor");
break;
This topic is archived.