Member Junction
    Preparing search index...

    Class for running views in a generic, tier-independent manner - uses a provider model for implementation transparently from the viewpoint of the consumer of the class. By default the RunView class you create will connect to the DEFAULT provider. If you want your RunView to connect to a different provider, you can pass in the provider to the constructor.

    Index

    Constructors

    Accessors

    Methods

    • Runs a view based on the provided parameters, see documentation for RunViewParams for more

      Type Parameters

      • T = any

      Parameters

      • params: RunViewParams
      • OptionalcontextUser: UserInfo

        if provided, this user is used for permissions and logging. For server based calls, this is generally required because there is no "Current User" since this object is shared across all requests.

      Returns Promise<RunViewResult<T>>

    • Creates a RunView instance from an IMetadataProvider. At runtime the provider object (ProviderBase) implements both IMetadataProvider and IRunViewProvider, but TypeScript doesn't know that statically. This factory centralizes the cast so callers don't need their own helper methods.

      Parameters

      • provider: IMetadataProvider

        An IMetadataProvider instance (typically from Metadata.Provider or a contextUser's provider)

      Returns RunView

      A new RunView wired to the given provider