getRow(Row#) |
ListRow |
Returns the specific row in the displayed list based on the Row# parameter. |
listRow= listObject.getRow(0);
|
The first row has index 0 and the last row has index getDisplayedCount()-1. If the Row# value is invalid, then null is returned. |
on(event,customhandler) |
this |
Registers a custom handler for the list currently displayed on the screen. NOTE: The framework passes the custom handler a row parameter, see About the Custom Handler for a List Object.
|
function myColorHandler(row){
//Change column YYY's color based on column XXX's value
if (row.getField("XXX").getValue()=="High"){
row.getField("YYY").setColor(...);
}
//Special logic for first row
if (row.rowNum == 0){
row.setColor(...);
}
}
listObj.on("display",myColorHandler);
|
For initial page load and paging, the handler is called for each row on the list. For inline editing, the row object that is passed to the custom handler is based on the row on which the inline edit was processed. The event parameter must be "display". |