RecordContext

Here is an example that demonstrates the use of a RecordContext component.

Example
Record context

RecordContext Class

Parameters

Name
Type
Default
Description
ChildContentRenderFragment?
ForceSuccessfulValidationBeforeSavebool
True
Should a successful validation of the record be performed before allowing the record to be saved.
IsDirtybool
False
ParentContextMainContext?
QueryParameterNamestring?
The name of the query parameter which specifies the id of the record to retrieve.
RecordTableRecord?
The record linked to this record context.
RecordIdstring?
The specific GUID of the record for the context.
TableNamestring?
The table logical name of the record.
ValidationSummaryIsVisiblebool
False
Display the validation summary.

Methods

Name
Parameters
Type
Description
GetRequestsList<RequestBase>
RefreshAsyncbool forceRefresh
Task
ResetStatevoid
SaveAsyncbool? refresh
Task<bool>
Save the context and any child contexts (grid, record, etc).
Validatebool
Validate the record and any sub-contexts (grid, lookup edit, record, main).