DataWeb
Search Results for

    Show / Hide Table of Contents

    Class AutomationTask_ActionListSandbox

    Inheritance
    object
    Control
    ActionList
    AutomationTask_ActionListSandbox
    Inherited Members
    ActionList.ValidateAsync(object, List<Form.ProvidedValue>, Dictionary<string, object>, IUser, string, NavigationContext, CancellationToken)
    ActionList.IsUpdateDataAsync(object, List<Form.ProvidedValue>, Dictionary<string, object>, IUser, string, NavigationContext, CancellationToken)
    Control.serviceProvider
    Control.form
    Control.Name
    Control.Type
    Control.Group
    Control.Title
    Control.DataField
    Control.DataSubField
    Control.DataType
    Control.DataSourceMode
    Control.DataSource
    Control.IsLateDataBinding
    Control.DefaultValueMode
    Control.DefaultValue
    Control.IsVisible
    Control.IsRequired
    Control.IsReadOnly
    Control.IsVersionLinked
    Control.IsLocalization
    Control.RegularExpression
    Control.MaxLength
    Control.StylePath
    Control.FormName
    Control.ListControlNames
    Control.FileTagName
    Control.FileTypes
    Control.FileMaxSize
    Control.FileMaxCount
    Control.CustomControlComponent
    Control.CustomControlOptions
    Control.ControlClass
    Control.IsVisibleRoles
    Control.VisibleRoles
    Control.Actions
    Control.Events
    Control.GetDefaultValueAsync(IUser, string, NavigationContext, CancellationToken)
    Control.ProcessOnTranslateAsync(object, Dictionary<string, string>, Dictionary<string, object>, string, string, IUser, string, NavigationContext, CancellationToken)
    Control.ProcessOnGetValueAsync(object, Dictionary<string, object>, IUser, string, NavigationContext, CancellationToken)
    Control.GetListValuesAsync(Dictionary<string, object>, IUser, string, NavigationContext, CancellationToken)
    Control.ProcessOnSaveDataAsync(object, List<Form.ProvidedValue>, Dictionary<string, object>, IUser, string, NavigationContext, CancellationToken)
    Control.GetControlDefaultValue()
    Control.ValidateControlIsRequired(object)
    Control.ValidateControlDataType(object)
    Control.SanitizeControlValue(object)
    Control.AddActionUpdateData()
    Control.AddActionSetNavigation(string, List<ContextAction.Step>)
    Control.AddActionSetNavigation(string, ContextAction.Step, List<ContextAction.Step>)
    Control.AddActionSetRemoteAction(string, string, ContextActionType, string, bool, bool, bool)
    Control.AddActionSetLocalAction(string, string, ContextActionType)
    Control.AddEventSetIsVisible(EventCondition, List<string>, List<string>, bool)
    Control.AddEventSetIsRequired(EventCondition, List<string>, List<string>)
    Control.AddEventSetDataSourceParameter(List<string>, List<string>)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DataWeb.Data.Controls
    Assembly: DataWeb.Core.dll
    Syntax
    public class AutomationTask_ActionListSandbox : ActionList

    Constructors

    AutomationTask_ActionListSandbox(Form, IServiceProvider)

    Declaration
    public AutomationTask_ActionListSandbox(Form form, IServiceProvider serviceProvider)
    Parameters
    Type Name Description
    Form form
    IServiceProvider serviceProvider

    Methods

    ExecuteTaskAsync(string)

    Declaration
    public Task<ContextAction.Result> ExecuteTaskAsync(string itemId = null)
    Parameters
    Type Name Description
    string itemId
    Returns
    Type Description
    Task<ContextAction.Result>

    InitAsync(CancellationToken)

    Initializes the control asynchronously. Override to register actions and events.

    Declaration
    public override Task InitAsync(CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    CancellationToken cancellationToken

    A token to monitor for cancellation requests.

    Returns
    Type Description
    Task

    A task that represents the asynchronous initialization operation.

    Overrides
    Control.InitAsync(CancellationToken)

    ProcessActionAsync(ContextAction, IUser, string, object, List<ProvidedValue>, NavigationContext, CancellationToken)

    Processes a ContextAction triggered on this control. The base implementation returns a successful result without performing any operation. Override to handle control-specific actions.

    Declaration
    public override Task<ContextAction.Result> ProcessActionAsync(ContextAction action, IUser user, string itemId = null, object value = null, List<Form.ProvidedValue> controlValues = null, NavigationContext navigationContext = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    ContextAction action

    The action to perform.

    IUser user

    The IUser performing the action.

    string itemId

    The Id of the item being edited, or null when adding a new item.

    object value

    The current value of the control at the time the action is triggered, if applicable.

    List<Form.ProvidedValue> controlValues

    The values of all controls on the form at the time the action is triggered, if applicable.

    NavigationContext navigationContext

    The NavigationContext of the form, if applicable.

    CancellationToken cancellationToken

    A token to monitor for cancellation requests.

    Returns
    Type Description
    Task<ContextAction.Result>

    A task that represents the asynchronous operation and returns the action result.

    Overrides
    Control.ProcessActionAsync(ContextAction, IUser, string, object, List<Form.ProvidedValue>, NavigationContext, CancellationToken)

    Extension Methods

    FormMapperExtension.ToControlInfo(Control, Dictionary<string, object>, Dictionary<string, object>)
    In this article
    Back to top Generated by DocFX