title | description | ms.author | author | ms.date | ms.reviewer | ms.topic | ms.subservice | contributors | |
---|---|---|---|---|---|---|---|---|---|
EntityFormOptions (Power Apps component framework API reference)| Microsoft Docs |
Learn how to use different methods and properties available for EntityFormOptions in Power Apps component framework. |
hemantg |
HemantGaur |
04/17/2024 |
jdaly |
reference |
pcf |
|
[!INCLUDE entityformoptions-description]
Model-driven apps
Designates a record that provides default values based on mapped column value. The lookup object has following properties: id
, name
, and entityType
.
Type: LookupValue
Unique ID of the table record to display the form for.
Type: string
Logical name of the table to display the form for.
Type: string
ID of the form instance to be displayed.
Type: string
Height of the form window to be displayed in pixels.
Type: number
Whether to display the form in new window.
Type: boolean
Whether to open a quick create form. The default value is false
.
Type: boolean
Width of the form window to be displayed in pixels.
Type: boolean
Specifies the window position on the screen.
Type: number
The windowPosition
value is a number with the following possible values:
Value | Position |
---|---|
1 | Center |
2 | Side |
private onRowClick(event: Event): void {
let rowRecordId = (event.currentTarget as HTMLTableRowElement).getAttribute(
RowRecordId
);
if (rowRecordId) {
let entityreference = this.contextObj.parameters.simpleTableGrid.records[
rowRecordId
].getNamedReference();
let entityFormOptions = {
entityName: entityreference.entityType!,
entityId: entityreference.id
};
this.contextObj.navigation.openForm(entityFormOptions);
}
}
Power Apps component framework API reference
Power Apps component framework overview
[!INCLUDEfooter-include]