Class FormulaFunctionsWithViewContext<T>
The context supplied while executing a formula that has a custom context item, and a view that it operates against
This context is mainly used against formulas that configure and work against a view itself, such as ones that
can specify if a view is visible dynamically, or more.
Inheritance
FormulaFunctionsWithViewContext<T>
Inherited Members
StandardFunctions.IsIn(object, object, object, object, object, object, object, object, object, object, object)
StandardFunctions.SelectCase(object, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>)
StandardFunctions.SelectCase(object, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>)
StandardFunctions.SelectCase(object, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>)
StandardFunctions.SelectCase(object, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>)
StandardFunctions.SelectCase(object, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>)
StandardFunctions.SelectCase(object, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>)
Assembly: LemonEdge.ClientCore.dll
Syntax
public class FormulaFunctionsWithViewContext<T> : FormulaFunctionsWithViewModel<T>, IFormulaFunctionsWithViewContext<T>, IFormulaFunctionsWithViewContext, IFormulaFunctionsWithViewModel<T>, IFormulaFunctionsWithViewModel, IFormulaFunctionsWithContext<T>, IFormulaFunctionsWithContext, IFormulaFunctions
Type Parameters
Name |
Description |
T |
The context supplied while executing a formula that has a custom context item, and a view that it operates against This context is mainly used against formulas that configure and work against a view itself, such as ones that can specify if a view is visible dynamically, or more. |
Constructors
FormulaFunctionsWithViewContext(IEntityRetriever, IReadOnlyCache, UserInfo, T, IModelLayoutDisplayerController, IModelView, object, IFormulaFunctionsServiceContext)
Declaration
public FormulaFunctionsWithViewContext(IEntityRetriever retriever, IReadOnlyCache cache, UserInfo user, T mainItem, IModelLayoutDisplayerController controller, IModelView view, object rowItem, IFormulaFunctionsServiceContext services)
Parameters
Properties
RowItem
Declaration
public object RowItem { get; }
Property Value
SelectedItems
Declaration
public IEnumerable<IBaseEntity> SelectedItems { get; }
Property Value
SelectedObjects
Declaration
public IEnumerable<object> SelectedObjects { get; }
Property Value
View
The view this formula can work with
Declaration
public IModelView View { get; }
Property Value
Methods
CreateFormulaContext(Type)
Declaration
protected override FormulaFunctions CreateFormulaContext(Type ofType)
Parameters
Type |
Name |
Description |
Type |
ofType |
|
Returns
Overrides
GetResultValue(object, string)
Declaration
public Task<object> GetResultValue(object item, string columnName)
Parameters
Returns
GetView(ViewDescriptorInstance)
Returns a view from the overall layout that can be referenced by this formula
Declaration
public IModelView GetView(ViewDescriptorInstance descriptor)
Parameters
Type |
Name |
Description |
ViewDescriptorInstance |
descriptor |
A descriptor for the view that you want returned that also exists within the current layout
this formula is executing within
|
Returns
Type |
Description |
IModelView |
A view from the overall layout that can be referenced by this formula
|
GetView(string)
Declaration
[FormulaFunction(Name = "RedisplayView", Type = "UI", Description = "Returns the view model from the specified view name.", Params = "1. The name of the view to return.", ParamCount = 1, IsAsync = false)]
public IModelView GetView(string viewName)
Parameters
Type |
Name |
Description |
string |
viewName |
|
Returns
GetViewContextType(EntityDescriptor)
Declaration
public static Type GetViewContextType(EntityDescriptor desc)
Parameters
Returns
RecalculateGridAggregates(string)
Declaration
[FormulaFunction(Name = "RecalculateGridAggregates", Type = "UI", Description = "Recalculates aggregates in grid of specified view.", Params = "1. The name of the view to recalculate aggregates on.", ParamCount = 1, IsAsync = false)]
public void RecalculateGridAggregates(string viewName)
Parameters
Type |
Name |
Description |
string |
viewName |
|
RedisplayView(string)
Declaration
[FormulaFunction(Name = "RedisplayView", Type = "UI", Description = "Redisplays the object against the specified view.", Params = "1. The name of the view to redisplay.", ParamCount = 1, IsAsync = true)]
public Task RedisplayView(string viewName)
Parameters
Type |
Name |
Description |
string |
viewName |
|
Returns
SetRowItem(object)
Declaration
public void SetRowItem(object rowItem)
Parameters
Type |
Name |
Description |
object |
rowItem |
|
Implements
Extension Methods