Skip to content

Latest commit

 

History

History
110 lines (71 loc) · 2.27 KB

File metadata and controls

110 lines (71 loc) · 2.27 KB
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
JimDaly

EntityFormOptions

[!INCLUDE entityformoptions-description]

Available for

Model-driven apps

Properties

createFromEntity

Designates a record that provides default values based on mapped column value. The lookup object has following properties: id, name, and entityType.

Type: LookupValue

entityId

Unique ID of the table record to display the form for.

Type: string

entityName

Logical name of the table to display the form for.

Type: string

formId

ID of the form instance to be displayed.

Type: string

height

Height of the form window to be displayed in pixels.

Type: number

openInNewWindow

Whether to display the form in new window.

Type: boolean

useQuickCreateForm

Whether to open a quick create form. The default value is false.

Type: boolean

width

Width of the form window to be displayed in pixels.

Type: boolean

windowPosition

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

Example

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);
    }
  }

Related articles

Power Apps component framework API reference
Power Apps component framework overview

[!INCLUDEfooter-include]