Set the visibility state for a column in grid; the column isidentified by the attribute name. The second argument can have the values "Y" or "N", used to set the visibility.
This method can be invoked only before showing the grid, so it should be used within a js action binded to a "before rendering grid" event.
//From the window "A" I open the window "B"
//Window A
var args = {
param1: "MyCustomParam"
};
//...
//Window B
getPanelParameter('param1'); //Output: "MyCustomParam"
setGridNoDataMessage(123, "No data found");
var json = getGridSelectedRows(123);
var selectedRows = JSON.parse(json);
for(var i=0; i<selectedRows.length; i++)
{
logger("sample: "+selectedRows[i].MY_FIELD);
}
setGridReloadPosition(123, "BOTTOM");
var voNew = {
selected : 'Y'
description : 'Gino'
}
var position = 0, //0 to length - 1
setGridRow(123, position, voNew);
var updateRows = [];
updateRows.push({
position : 2, //0 to length - 1
vo : voNew //the single row vo
})
setGridRows(89, updateRows);