Table of Contents

Class JJFormView

Namespace
JJMasterData.Core.UI.Components
Assembly
JJMasterData.Core.dll

Represents a CRUD.

public class JJFormView : AsyncComponent
Inheritance
JJFormView
Inherited Members

Examples

Warning

It looks like the sample you are looking for does not exist.

The GetHtml method will return something like this:

Properties

CurrentSettings

[Obsolete("Please use GridView.CurrentSettings")]
public GridSettings CurrentSettings { get; set; }

Property Value

GridSettings

DataImportation

Configurações de importação

public JJDataImportation DataImportation { get; }

Property Value

JJDataImportation

DataPanel

public JJDataPanel DataPanel { get; }

Property Value

JJDataPanel

EnableEditMode

[Obsolete("Please use GridView.EnableEditMode")]
public bool EnableEditMode { get; set; }

Property Value

bool

EnableFilter

[Obsolete("Please use GridView.EnableFilter")]
public bool EnableFilter { get; set; }

Property Value

bool

EnableMultiSelect

[Obsolete("Please use GridView.EnableMultiSelect")]
public bool EnableMultiSelect { get; set; }

Property Value

bool

ExportAction

[Obsolete("Please use GridView.ExportAction")]
public ExportAction ExportAction { get; }

Property Value

ExportAction

FormElement

public FormElement FormElement { get; }

Property Value

FormElement

GridActions

[Obsolete("Please use GridView.GridActions")]
public GridTableActionList GridActions { get; }

Property Value

GridTableActionList

GridView

public JJGridView GridView { get; }

Property Value

JJGridView

PageState

public PageState PageState { get; }

Property Value

PageState

RelationValues

Values to be replaced by relationship. If the field name exists in the relationship, the value will be replaced

public Dictionary<string, object> RelationValues { get; set; }

Property Value

Dictionary<string, object>

Remarks

Key = Field name, Value=Field value

RouteContext

public RouteContext RouteContext { get; }

Property Value

RouteContext

ShowTitle

public bool ShowTitle { get; set; }

Property Value

bool

ShowToolbar

[Obsolete("Please use GridView.ShowToolbar")]
public bool ShowToolbar { get; set; }

Property Value

bool

TitleActions

public List<TitleAction>? TitleActions { get; set; }

Property Value

List<TitleAction>

ToolBarActions

[Obsolete("Please use GridView.ToolBarActions")]
public GridToolbarActionList ToolBarActions { get; }

Property Value

GridToolbarActionList

Methods

AddFormEventHandler(IFormEventHandler?)

public void AddFormEventHandler(IFormEventHandler? formEventHandler)

Parameters

formEventHandler IFormEventHandler

BuildResultAsync()

protected override Task<ComponentResult> BuildResultAsync()

Returns

Task<ComponentResult>

ClearSelectedGridValues()

[Obsolete("Please use GridView.ClearSelectedGridValues")]
public void ClearSelectedGridValues()

DeleteFormValuesAsync(Dictionary<string, object?>?)

public Task<Dictionary<string, string>> DeleteFormValuesAsync(Dictionary<string, object?>? filter)

Parameters

filter Dictionary<string, object>

Returns

Task<Dictionary<string, string>>

GetActionContext(BasicAction, FormStateData, string?)

public ActionContext GetActionContext(BasicAction action, FormStateData formStateData, string? fieldName = null)

Parameters

action BasicAction
formStateData FormStateData
fieldName string

Returns

ActionContext

GetFormStateDataAsync()

public ValueTask<FormStateData> GetFormStateDataAsync()

Returns

ValueTask<FormStateData>

GetFormValuesAsync()

public Task<Dictionary<string, object?>> GetFormValuesAsync()

Returns

Task<Dictionary<string, object>>

GetGridValues()

[Obsolete("Please use GridView.GetGridValuesAsync()")]
public List<Dictionary<string, object?>> GetGridValues()

Returns

List<Dictionary<string, object>>

GetRelationValuesFromForm()

public Dictionary<string, object> GetRelationValuesFromForm()

Returns

Dictionary<string, object>

GetSelectedGridValues()

[Obsolete("Please use GridView.GetSelectedGridValues")]
public List<Dictionary<string, object>> GetSelectedGridValues()

Returns

List<Dictionary<string, object>>

InsertFormValuesAsync(Dictionary<string, object?>, bool)

Insert the records in the database.

public Task<Dictionary<string, string>> InsertFormValuesAsync(Dictionary<string, object?> values, bool validateFields = true)

Parameters

values Dictionary<string, object>
validateFields bool

Returns

Task<Dictionary<string, string>>

The list of errors.

SetCurrentFilter(string, object)

[Obsolete("Please use GridView.SetCurrentFilter")]
public void SetCurrentFilter(string filterKey, object filterValue)

Parameters

filterKey string
filterValue object

SetGridOptions(GridUI)

[Obsolete("Please use GridView.SetGridOptions()")]
public void SetGridOptions(GridUI options)

Parameters

options GridUI

UpdateFormValuesAsync(Dictionary<string, object?>)

Update the records in the database.

public Task<Dictionary<string, string>> UpdateFormValuesAsync(Dictionary<string, object?> values)

Parameters

values Dictionary<string, object>

Returns

Task<Dictionary<string, string>>

The list of errors.

ValidateFields(Dictionary<string, object>, PageState)

public Dictionary<string, string> ValidateFields(Dictionary<string, object> values, PageState pageState)

Parameters

values Dictionary<string, object>
pageState PageState

Returns

Dictionary<string, string>

Events

OnAfterDeleteAsync

public event AsyncEventHandler<FormAfterActionEventArgs>? OnAfterDeleteAsync

Event Type

AsyncEventHandler<FormAfterActionEventArgs>

OnAfterInsertAsync

public event AsyncEventHandler<FormAfterActionEventArgs>? OnAfterInsertAsync

Event Type

AsyncEventHandler<FormAfterActionEventArgs>

OnAfterUpdateAsync

public event AsyncEventHandler<FormAfterActionEventArgs>? OnAfterUpdateAsync

Event Type

AsyncEventHandler<FormAfterActionEventArgs>

OnBeforeDeleteAsync

public event AsyncEventHandler<FormBeforeActionEventArgs>? OnBeforeDeleteAsync

Event Type

AsyncEventHandler<FormBeforeActionEventArgs>

OnBeforeImportAsync

public event AsyncEventHandler<FormBeforeActionEventArgs>? OnBeforeImportAsync

Event Type

AsyncEventHandler<FormBeforeActionEventArgs>

OnBeforeInsertAsync

public event AsyncEventHandler<FormBeforeActionEventArgs>? OnBeforeInsertAsync

Event Type

AsyncEventHandler<FormBeforeActionEventArgs>

OnBeforeUpdateAsync

public event AsyncEventHandler<FormBeforeActionEventArgs>? OnBeforeUpdateAsync

Event Type

AsyncEventHandler<FormBeforeActionEventArgs>

Operators

implicit operator JJDataPanel(JJFormView)

public static implicit operator JJDataPanel(JJFormView formView)

Parameters

formView JJFormView

Returns

JJDataPanel

implicit operator JJGridView(JJFormView)

public static implicit operator JJGridView(JJFormView formView)

Parameters

formView JJFormView

Returns

JJGridView