3.2.0

Problem getting the first row

Trying to get the data on the first row. When the grid is resorted, the problem moves with the first row loaded initially. Probably something simple, but obscure.

var myHeaders = ["Record", "Description"];
var myData = [
["002003.1","12/18/2007 don't feel good"],
["002003.2","01/17/0003 "],
["002003.3","05/30/2008 demo"],
["002003.4","New Record"]
];;
var grid1 = new AW.UI.Grid;
grid1.setId("grid1");
grid1.setSelectionMode("single-row");
grid1.setHeaderText(myHeaders);
grid1.setCellData(myData);
grid1.setColumnCount(2);
grid1.setRowCount(4);
grid1.onCurrentRowChanged = function(i){
var key = this.getCellText(0,i);
document.U_VISIT.setAttribute('action','https://www.qmsystems.net/qmrox.qsp&app=penta&account=M30000&form=U_VISIT&command=get&key='+key);
document.U_VISIT.submit();
};
Myshka
July 7,
fixed. needed obj.onRowClicked()
Myshka
July 8,

This topic is archived.

See also:


Back to support forum