Search Results for

    Show / Hide Table of Contents

    Class ViewSerializedParamExtensions

    Inheritance
    object
    ViewSerializedParamExtensions
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.Core.Views.Core
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public static class ViewSerializedParamExtensions

    Methods

    GetItemFromIDWithNameFallback<T>(ViewSerializedParam, Guid, string, IReadOnlyCache)

    Not perfect. View serialized parameters have to store their attribues using ids, and names.

    This way a layout can be exported from one system o another and still work as long as the same queries/etc for the layout exist.

    Ideally the viewdescriptor and serialized classed should be in the api core. Then a layout import can deserialize the layout and update the ids during the import.

    But for now we have to just deal with it during runtime in the view descriptor

    Declaration
    public static Task<T> GetItemFromIDWithNameFallback<T>(this ViewSerializedParam viewParam, Guid id, string name, IReadOnlyCache cache = null) where T : IBaseEntity
    Parameters
    Type Name Description
    ViewSerializedParam viewParam
    Guid id
    string name
    IReadOnlyCache cache
    Returns
    Type Description
    Task<T>
    Type Parameters
    Name Description
    T

    IsVisible(ViewSerializedParam)

    Returns if this view is currently visible by ensuring it passes the Visible, VisibleOnlyToRoles and VisibleFormula (from the last EvaluateVisibilityFormula(DisplayableItemDescriptor, IModelLayoutDisplayerController, IModelView, IBaseEntity) call)

    Declaration
    public static bool IsVisible(this ViewSerializedParam viewParam)
    Parameters
    Type Name Description
    ViewSerializedParam viewParam
    Returns
    Type Description
    bool
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.