Interface IFormulaExecuter
Namespace: LemonEdge.Client.UI.API.Formulas
Assembly: LemonEdge.Client.UI.API.dll
Syntax
public interface IFormulaExecuter
Methods
EvaluateControlDisplayInfoFormulaResult(ControlDisplayInfoFormulaResult, IEntityUpdater, IReadOnlyCache, UserInfo)
Evaluates a formula on a ControlDisplayInfoFormulaResult.
Declaration
Task<object> EvaluateControlDisplayInfoFormulaResult(ControlDisplayInfoFormulaResult infoResult, IEntityUpdater updater, IReadOnlyCache cache, UserInfo user)
Parameters
| Type | Name | Description |
|---|---|---|
| ControlDisplayInfoFormulaResult | infoResult | |
| IEntityUpdater | updater | |
| IReadOnlyCache | cache | |
| UserInfo | user |
Returns
| Type | Description |
|---|---|
| Task<object> | The formula result |
EvaluateTabSerializedParamVisibilityFormula(TabSerializedParam, DisplayableItemDescriptor?)
Evaluates the if this tab should be visible or not against the specified displayedItem.
Stores the result internally and ensures IsVisible accounts for the correct formula evaluated value
Declaration
Task EvaluateTabSerializedParamVisibilityFormula(TabSerializedParam param, DisplayableItemDescriptor? displayedItem)
Parameters
| Type | Name | Description |
|---|---|---|
| TabSerializedParam | param | The TabSerializedParam to set VisibilityFormula on |
| DisplayableItemDescriptor | displayedItem | The current displayed item to process a formula against |
Returns
| Type | Description |
|---|---|
| Task | A task indicating the completion of the operation |
EvaluateViewSerializedParamVisibilityFormula(ViewSerializedParam, IFormulaFunctionsWithContext?, DisplayableItemDescriptor?, IModelLayoutDisplayerController, IModelView, IBaseEntity)
Evaluates the VisibleFormula to determine if this view should be visible or not. Stores the result locally so the next call to IsVisible returns the correct result
Declaration
Task EvaluateViewSerializedParamVisibilityFormula(ViewSerializedParam viewParam, IFormulaFunctionsWithContext? layoutFormulaContext, DisplayableItemDescriptor? displayedItem, IModelLayoutDisplayerController controller, IModelView view, IBaseEntity viewItem)
Parameters
| Type | Name | Description |
|---|---|---|
| ViewSerializedParam | viewParam | |
| IFormulaFunctionsWithContext | layoutFormulaContext | |
| DisplayableItemDescriptor | displayedItem | The current root item displayed against the layout this view resides within |
| IModelLayoutDisplayerController | controller | The controller for the view this formula is being evaluated against |
| IModelView | view | The view this formula is being evaluated against |
| IBaseEntity | viewItem | The item this view is displaying |
Returns
| Type | Description |
|---|---|
| Task | A task indicating the completion of the operation |