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 |
Related articles
GridAttribute
Grids and subgrids in model-driven apps
Columns
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈