grid refresh
I have pondered over the many grid refresh items and still cannot get this to operate. Can someone help? Thank you.
I have functions of this type:
function w1(){ var i, rows = [], max = obj.getRowCount(); for (i=0; i<max; i++){if (obj.getCellValue(1, i) == "W1"){rows.push(i);} } obj.setRowCount(rows.length); obj.setRowIndices(rows); }
triggered by this button:
var button = new AW.UI.Button; button.setControlText("W1"); button.onClick = w1; document.write(button);
I am unable to get obj.refresh() to work so that all rows are displayed. How to do this? Thank you.
related -- how to use a simple combobox for triggering rather than button -- all examples I find are too complex. Thank you.
I have functions of this type:
function w1(){ var i, rows = [], max = obj.getRowCount(); for (i=0; i<max; i++){if (obj.getCellValue(1, i) == "W1"){rows.push(i);} } obj.setRowCount(rows.length); obj.setRowIndices(rows); }
triggered by this button:
var button = new AW.UI.Button; button.setControlText("W1"); button.onClick = w1; document.write(button);
I am unable to get obj.refresh() to work so that all rows are displayed. How to do this? Thank you.
related -- how to use a simple combobox for triggering rather than button -- all examples I find are too complex. Thank you.
Dave
April 8,