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 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應