EntityFormOptions
Provides access to all the information about the table forms.
Available for
Model-driven apps
Properties
createFromEntity
Designates a record that will provide default values based on mapped column value. The lookup object has following properties: table type, id and name.
Type: Entityreference
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. If you don't specify this, by default false is passed.
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 topics
Power Apps component framework API reference
Power Apps component framework overview
Зворотний зв’язок
Надіслати й переглянути відгук про