components.PowerPortalsPro.Demo.Client.Customizations.Pages.Contexts.MainContext.MainContextMainDemo.contact-label
components.PowerPortalsPro.Demo.Client.Customizations.Pages.Contexts.MainContext.MainContextMainDemo.account-label
components.PowerPortalsPro.Demo.Client.Customizations.Pages.Contexts.MainContext.MainContextDemoPage.main-demo-description
components.PowerPortalsPro.Demo.Client.Customizations.Pages.Contexts.MainContext.MainContextDemoPage.child-components-description
<MainContext>
<RecordContext table="contact" id={contactId}>
<TextEdit columnName="firstname" />
<TextEdit columnName="lastname" />
</RecordContext>
<RecordContext table="account" id={accountId}>
<TextEdit columnName="name" />
</RecordContext>
</MainContext><MainContext>
<RecordContext Record="@_contact">
<TextEdit ColumnName="firstname" />
<TextEdit ColumnName="lastname" />
</RecordContext>
<RecordContext Record="@_account">
<TextEdit ColumnName="name" />
</RecordContext>
</MainContext>components.PowerPortalsPro.Demo.Client.Customizations.Pages.Contexts.MainContext.MainContextDemoPage.saving-description
<MainContext>
<MenuBar>
<SaveContextButton />
<RefreshContextButton />
</MenuBar>
<RecordContext table="contact" id={contactId}>
<TextEdit columnName="firstname" />
</RecordContext>
<RecordContext table="account" id={accountId}>
<TextEdit columnName="name" />
</RecordContext>
</MainContext><MainContext>
<MenuBar>
<SaveContextButton />
<RefreshContextButton />
</MenuBar>
<RecordContext Record="@_contact">
<TextEdit ColumnName="firstname" />
</RecordContext>
<RecordContext Record="@_account">
<TextEdit ColumnName="name" />
</RecordContext>
</MainContext>components.PowerPortalsPro.Demo.Client.Customizations.Pages.Contexts.MainContext.MainContextDemoPage.refreshing-description
components.PowerPortalsPro.Demo.Client.Customizations.Pages.Contexts.MainContext.MainContextDemoPage.validation-description
<MainContext forceSuccessfulValidationBeforeSave={false}>
<SaveContextButton />
<RecordContext table="account" id={accountId}>
<TextEdit columnName="name" />
</RecordContext>
</MainContext><MainContext ForceSuccessfulValidationBeforeSave="false">
<MenuBar>
<SaveContextButton />
</MenuBar>
<RecordContext Record="@_record">
<TextEdit ColumnName="name" />
</RecordContext>
</MainContext>components.PowerPortalsPro.Demo.Client.Customizations.Pages.Contexts.MainContext.MainContextDemoPage.dirty-tracking-description
<MainContext warnOnUnsavedChanges={false}>
<MenuBar>
<SaveContextButton />
<RefreshContextButton />
</MenuBar>
<RecordContext table="account" id={accountId}>
<TextEdit columnName="name" />
</RecordContext>
</MainContext><MainContext DisableUnsavedChangesWarning="true">
<MenuBar>
<SaveContextButton />
<RefreshContextButton />
</MenuBar>
<RecordContext Record="@_record">
<TextEdit ColumnName="name" />
</RecordContext>
</MainContext>components.PowerPortalsPro.Demo.Client.Customizations.Pages.Contexts.MainContext.MainContextDemoPage.before-save-description
function MyPage() {
const onBeforeSave = async () => {
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.Contexts.MainContext.MainContextDemoPage.snippet-before-save-react-comment-line1
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.Contexts.MainContext.MainContextDemoPage.snippet-before-save-react-comment-line2
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.Contexts.MainContext.MainContextDemoPage.snippet-before-save-react-comment-line3
};
return (
<MainContext onBeforeSave={onBeforeSave}>
<SaveContextButton />
<RecordContext table="account" id={accountId}>
<TextEdit columnName="name" />
</RecordContext>
</MainContext>
);
}<MainContext OnBeforeSave="OnBeforeSave">
<MenuBar>
<SaveContextButton />
</MenuBar>
<RecordContext Record="@_record">
<TextEdit ColumnName="name" />
</RecordContext>
</MainContext>
@code {
private async Task OnBeforeSave(CancelEventArgs eventArgs)
{
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.Contexts.MainContext.MainContextDemoPage.snippet-before-save-razor-comment-line1
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.Contexts.MainContext.MainContextDemoPage.snippet-before-save-razor-comment-line2
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.Contexts.MainContext.MainContextDemoPage.snippet-before-save-razor-comment-line3
}
}components.PowerPortalsPro.Demo.Client.Customizations.Pages.Contexts.MainContext.MainContextDemoPage.example-description
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.name | components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.type | components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.default | components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.description |
|---|---|---|---|
ChildContent | RenderFragment? | この文脈でレンダリングされる子コンポーネント。 | |
DisableUnsavedChangesWarning | bool? | trueに設定すると、ページから離れる際に未保存の変更警告ダイアログが表示されません。 この設定に関係なく、リフレッシュ時に常に警告が表示されます。 明示的に設定されていない場合、その値は親コンテキストから継承されます。 | |
ForceSuccessfulValidationBeforeSave | bool | True | 記録の検証が成功してから保存を許可した場合、 |
IsDirty | bool | False | このコンテキストや登録済みの子に保存されていない変更があるかどうかを示します。 |
ParentContext | MainContext? | 最も近い祖先であるMainContextにより、ネストされたコンテキスト階層が可能になりました。 |
ChildContentDisableUnsavedChangesWarningForceSuccessfulValidationBeforeSaveIsDirtyParentContextcomponents.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.name | components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.type | components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.description |
|---|---|---|
OnBeforeSave | EventCallback<CancelEventArgs> | コールバックから電話がかかってきて、セーブ前に電話がかかってきた。セーブ操作をキャンセルすることが可能です。 |
OnBeforeSavecomponents.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.name | components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.parameters | components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.type | components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.description |
|---|---|---|---|
GetRequests | List<OrganizationRequest> | このコンテキストおよびその子コンテキストからの保留中のセーブリクエストをすべて収集し、返します。 | |
RefreshAsync | bool forceRefresh | Task | このコンテキストと登録済みのすべての子コンポーネントを更新します。 |
ResetState | void | このコンテキストおよび登録されたすべての子の変更をリセットします。 | |
SaveAsync | bool? refresh | Task<bool> | コンテキストと子コンテキスト(グリッド、レコードなど)を保存してください。 |
Validate | bool | このコンテキストと登録済みのすべての子コンポーネントを検証します。 |
GetRequestsRefreshAsyncResetStateSaveAsyncValidate