Interface IFormulaFunctionsWithViewModel
Assembly: LemonEdge.ClientCore.dll
public interface IFormulaFunctionsWithViewModel : IFormulaFunctionsWithContext, IFormulaFunctions
Properties
Declaration
IModelLayoutCommon Host { get; }
Property Value
Declaration
bool IgnoreEvents { get; set; }
Property Value
Declaration
IRootController RootController { get; }
Property Value
Methods
Declaration
[FormulaFunction(Name = "DisplayError", Type = "UI", Description = "Displays the specified exception to the user.", Params = "1. The exception to display.", ParamCount = 1, IsAsync = true)]
Task DisplayError(Exception ex)
Parameters
Returns
Declaration
[FormulaFunction(Name = "DisplayInformationMessage", Type = "UI", Description = "Displays ok message.", Params = "1. The title of the message.\r\n2. The message", ParamCount = 2, IsAsync = true)]
Task DisplayInformationMessage(string title, string msg)
Parameters
Returns
Declaration
[FormulaFunction(Name = "DisplayYesNoCancelQuestion", Type = "UI", Description = "Displays a question to the user with a yes/no/cancel option. Returns null if cancel is selected, and true if yes is selected.", Params = "1. The title for the message box.\r\n2. The question the user is prompted with.", ParamCount = 2, IsAsync = true)]
Task<bool?> DisplayYesNoCancelQuestion(string title, string question)
Parameters
Returns
Declaration
[FormulaFunction(Name = "DisplayYesNoQuestion", Type = "UI", Description = "Displays a question to the user with a yes/no option. Returns true if yes is selected.", Params = "1. The title for the message box.\r\n2. The question the user is prompted with.", ParamCount = 2, IsAsync = true)]
Task<bool> DisplayYesNoQuestion(string title, string question)
Parameters
Returns
Declaration
[FormulaFunction(Name = "OpenItem", Type = "UI", Description = "Opens the specified item as a seperate tab in the app.", Params = "1. The item to open.", ParamCount = 1, IsAsync = true)]
Task OpenItem(IBaseEntity item)
Parameters
Returns
Declaration
[FormulaFunction(Name = "OpenItemFromID", Type = "UI", Description = "Opens the specified item as a seperate tab in the app.", Params = "1. The type of item to open.\r\n2. The id of the item to open", ParamCount = 2, IsAsync = true)]
Task OpenItemFromID(Type itemType, Guid itemID)
Parameters
Type |
Name |
Description |
Type |
itemType |
|
Guid |
itemID |
|
Returns
Extension Methods