Search Results for

    Show / Hide Table of Contents

    Class FormulaFunctionsWithContext<T>

    /// The context supplied while executing formulas that also has a custom context item the formula can execute against with the correct type

    Inheritance
    System.Object
    StandardFunctions
    FormulaFunctions
    FormulaFunctionsWithContext
    FormulaFunctionsWithContext<T>
    BlendTransactionContext
    NotificationContext
    Implements
    IFormulaFunctionsWithContextItem
    IFormulaFunctions
    Inherited Members
    FormulaFunctionsWithContext.Item
    FormulaFunctionsWithContext.ItemAs<T>()
    FormulaFunctionsWithContext.GetValue(String)
    FormulaFunctionsWithContext.GetValue<T>(String)
    FormulaFunctionsWithContext.Create(IEntityRetriever, IReadOnlyCache, UserInfo, Object)
    FormulaFunctionsWithContext.GetContextType(EntityDescriptor)
    FormulaFunctions.Data
    FormulaFunctions.Cache
    FormulaFunctions.User
    FormulaFunctions.GetContextItemType(Object)
    FormulaFunctions.GetItemPropertyValue(Object, String)
    FormulaFunctions.GetItemFromDataSourceID(String, String)
    FormulaFunctions.GetItemFromDataSourceID(String, String, String)
    FormulaFunctions.GetItem(String, Guid)
    FormulaFunctions.RunQuery(String, String, String[])
    FormulaFunctions.GetQueryItems(String, String, String, String)
    StandardFunctions.FormatAsString(Object)
    StandardFunctions.Null()
    StandardFunctions.IsNull(Object)
    StandardFunctions.Not(Boolean)
    StandardFunctions.Or(Boolean, Boolean)
    StandardFunctions.And(Boolean, Boolean)
    StandardFunctions.Sin(Double)
    StandardFunctions.Cos(Double)
    StandardFunctions.Now()
    StandardFunctions.Today()
    StandardFunctions.TodayString()
    StandardFunctions.EndOfMonth(DateTime)
    StandardFunctions.BeginningOfMonth(DateTime)
    StandardFunctions.BeginningOfWeek(DateTime)
    StandardFunctions.EndOfYear(DateTime)
    StandardFunctions.EndOfDay(DateTime)
    StandardFunctions.Floor(Decimal)
    StandardFunctions.Ceiling(Decimal)
    StandardFunctions.BeginningOfYear(DateTime)
    StandardFunctions.BeginningOfDay(DateTime)
    StandardFunctions.Random(Int32, Int32)
    StandardFunctions.Trim(String)
    StandardFunctions.TrimStart(String, Char[])
    StandardFunctions.TrimEnd(String, Char[])
    StandardFunctions.PadLeft(String, Int32, Char)
    StandardFunctions.PadRight(String, Int32, Char)
    StandardFunctions.Mod(Double, Double)
    StandardFunctions.If(Boolean, Object, Object)
    StandardFunctions.IsIn(Object, Object)
    StandardFunctions.IsIn(Object, Object, Object)
    StandardFunctions.IsIn(Object, Object, Object, Object)
    StandardFunctions.IsIn(Object, Object, Object, Object, Object)
    StandardFunctions.IsIn(Object, Object, Object, Object, Object, Object)
    StandardFunctions.IsIn(Object, Object, Object, Object, Object, Object, Object)
    StandardFunctions.IsIn(Object, Object, Object, Object, Object, Object, Object, Object)
    StandardFunctions.IsIn(Object, Object, Object, Object, Object, Object, Object, Object, Object)
    StandardFunctions.IsIn(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)
    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>>)
    StandardFunctions.SelectCase(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>>)
    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>>)
    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>>)
    StandardFunctions.Format(Object, String)
    StandardFunctions.Lower(String)
    StandardFunctions.Upper(String)
    StandardFunctions.WCase(String)
    StandardFunctions.Date(Int32, Int32, Int32)
    StandardFunctions.Year(DateTime)
    StandardFunctions.Month(DateTime)
    StandardFunctions.Day(DateTime)
    StandardFunctions.WeekDay(DateTime)
    StandardFunctions.Replace(String, String, String)
    StandardFunctions.Substr(String, Int32, Int32)
    StandardFunctions.Len(String)
    StandardFunctions.Abs(Double)
    StandardFunctions.Int(Object)
    StandardFunctions.Trunc(Double, Int32)
    StandardFunctions.Dec(Object)
    StandardFunctions.Round(Object)
    StandardFunctions.IsBlank(String)
    StandardFunctions.Round(Object, Int32)
    StandardFunctions.Min(Double, Double, Double, Double, Double)
    StandardFunctions.Max(Double, Double, Double, Double, Double)
    StandardFunctions.Chr(Int32)
    StandardFunctions.ChCR()
    StandardFunctions.ChLF()
    StandardFunctions.ChCRLF()
    StandardFunctions.Money(Object)
    StandardFunctions.Contains(String, String)
    StandardFunctions.FormatDate(DateTime, String)
    StandardFunctions.Sqrt(Double)
    StandardFunctions.Power(Double, Double)
    StandardFunctions.ValString(Object)
    StandardFunctions.ValBool(Object)
    StandardFunctions.ValDate(Object)
    StandardFunctions.ValDecimal(Object)
    StandardFunctions.ValLong(Object)
    StandardFunctions.ValID(Object)
    StandardFunctions.DateAdd(DateTime, Decimal, Decimal, Decimal)
    StandardFunctions.DateAddWorkDays(DateTime, Decimal)
    StandardFunctions.DateAdd(DateTime, DateTime)
    StandardFunctions.DayDifference(DateTime, DateTime)
    StandardFunctions.DayDifferenceWorkDays(DateTime, DateTime)
    StandardFunctions.HourDifference(DateTime, DateTime)
    StandardFunctions.MinuteDifference(DateTime, DateTime)
    StandardFunctions.YearDifference(DateTime, DateTime)
    StandardFunctions.NullDate()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: LemonEdge.Core
    Assembly: API.dll
    Syntax
    public class FormulaFunctionsWithContext<T> : FormulaFunctionsWithContext, IFormulaFunctionsWithContextItem, IFormulaFunctions
    Type Parameters
    Name Description
    T

    The type of item this formula will execute against

    Constructors

    FormulaFunctionsWithContext(IEntityRetriever, IReadOnlyCache, UserInfo, Object)

    Creates a new formula functions for helping with custom formulas as a context to operate against

    Declaration
    public FormulaFunctionsWithContext(IEntityRetriever retriever, IReadOnlyCache cache, UserInfo user, object item)
    Parameters
    Type Name Description
    IEntityRetriever retriever

    A context allowing formulas to load and query any data from LemonEdge

    IReadOnlyCache cache

    A local cache

    UserInfo user

    The current user executing the formula

    System.Object item

    The custom item to be used against the formula

    Properties

    MyItem

    The item this formula can execute directly against and refer to

    Declaration
    public T MyItem { get; }
    Property Value
    Type Description
    T

    Implements

    IFormulaFunctionsWithContextItem
    IFormulaFunctions

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)

    See Also

    FormulaFunctionsWithContext
    FormulaFunctions
    In This Article
    Back to top © LemonEdge Technology. All rights reserved.