BDG Scenario 3

ActivityTypeList.js

window.onload = window_onLoad;

function window_onLoad() {
   var xml = '../Scripts/viewData.asp?tableName=activityType&fieldList=ActivityTypeId,Name&sortBy=Name';
   var id = getParam('id');
   if (id != null) xml = '../Scripts/viewData.asp?procName=lw_getActivityTypes&groupId=' + id;
   xmldso.XMLDocument.ondataavailable = doLoad;
   xmldso.XMLDocument.load(xml);
}

function formatCell(row) {
   return '<SPAN STYLE="display:none">' + row.cells[0].innerText + '</SPAN>' +
          '<IMG border="0" width="24" height="24" src="../images/eval.gif" align="left" hspace="4">' +
          '<SPAN>' + row.cells[1].innerText + '</SPAN>';
}

function selectCell(elem) {
   var id = elem.firstChild.innerText;
   parent.frames("RIGHTPANE").window.load(id);
}