RecordContext

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

Example
Record context

RecordContext Class

Parameters

Name
Type
Default
Description
ChildContentRenderFragment?
ContextTemplateRenderFragment<TableRecord>
You can optionaly specifiy a template for record. This allows you access to the 'TableRecord' object in the template.
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.

Events

Name
Type
Description
OnBeforeDeleteEventCallback<CancelEventArgs>
Callback called before deleting. Allows for cancelling the delete operation.
OnBeforeSaveEventCallback<CancelEventArgs>
Callback called before saving. Allows for cancelling the save operation.
RecordLoadedEventCallback<TableRecord>
EventCallback to trigger when the record is loaded.

Methods

Name
Parameters
Type
Description
DeleteAsyncTask<bool>
GetRequestsList<OrganizationRequest>
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).