EntityFormOptions
Provides access to all the information about the table forms.
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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기