Creating a UI Page to Start an Operation
.AddPage(
new Page
{
Id = AppConstants.Pages.SendMailOperationPage,
Title = "Send Mail",
Name = "send-mail",
Area = ContainerComponent.Create(
new OperationStartComponent
{
OperationId = AppConstants.Operations.SendMail,
EntityClassId = IdGen.GetEntityClassId<SendMailInput>(),
Area = PageBuilderExtensions.VerticalContainer(
AppConstants.CustomComponents.HelloUserComponent,
PageBuilderExtensions.TextInput(
IdGen.GetPropertyId<SendMailInput>(
nameof(SendMailInput.MailAddress)
),
"Email",
true
),
new EntityRelationInputComponent
{
EntityClassId = IdGen.GetEntityClassId<Activity>(),
PropertyId = IdGen.GetPropertyId<SendMailInput>(
nameof(SendMailInput.ActivityId)
),
IsRequired = true,
},
new TextareaInputComponent
{
PropertyId = IdGen.GetPropertyId<SendMailInput>(
nameof(SendMailInput.Message)
),
IsRequired = true,
}
),
AfterCancelPageId = AppConstants.Pages.HomePage,
AfterExecutePageId = AppConstants.Pages.HomePage,
}
),
}
);Adding the Page to the Menu
Last updated