GridEntity (Client API reference)

GridEntity is returned by the GridRowData.getEntity method or by directly accessing the GridRowData.entity object. Use the GridEntity methods to access data about the specific records in the rows.

var myRows = gridContext.getGrid().getRows();
var myRow = myRows.get(arg);
var gridEntity = myRow.data.entity;

GridEntity also supports the columns collection that provides methods of working with a collection of columns for a table in the editable grid. Each column (GridAttribute) represents the data in the cell of an editable grid, and contains a reference to all the cells associated with the column. See Collections (Client API reference) for information on the methods available to access data in a collection.

Methods

Name Description Available for
getEntityName Returns the logical name for the record in the row. Read-only and editable grids
getEntityReference Returns a Lookup value that references the record in the row. Read-only and editable grids
getId Returns the Id for the record in the row. Read-only and editable grids
getPrimaryAttributeValue Returns the primary column value for the record in the row. Read-only grid

GridAttribute
Grids and subgrids in model-driven apps
Columns