Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

This method returns the data value of a specific field in a specific row of a grid. The data does not have to be visible when this method is called. If the field name or row number does not exist, null is returned.

This method only works with Rich Display File development where RPG code is used to populate the grid.  It does not work with data-bound grids or with grids rendered by Genie.  For data-bound grids and for Genie development, use getCellValue().


  • row - the row number to retrieve the value from; when using events such as onrowclick, onrowdblclick, onrowmouseover, and onrowmouseout, the row variable is automatically passed into the event and can be used as the parameter to this method
  • fieldName - the field name as defined in the subfile record format


The following expression retrieves the customer id from the first row of the subfile:

var customerId = getObj("Grid1").grid.getDataValue(1, "CUSTID");
  • No labels