Member Junction
    Preparing search index...

    ViewSelectorComponent - Dropdown for selecting saved views

    Features:

    • Shows "(Default)" option when no view is selected
    • Groups views into "My Views" and "Shared Views"
    • "Save Current View" and "Manage Views" actions
    • "Open in Tab" button for saved views

    Hierarchy (View Summary)

    Implements

    • OnChanges
    • OnDestroy
    Index

    Constructors

    Properties

    ConfigureViewRequested: EventEmitter<void> = ...

    Emitted when user wants to configure the current view

    CreateNewRecordRequested: EventEmitter<void> = ...

    Emitted when user wants to create a new record

    DuplicateViewRequested: EventEmitter<string> = ...

    Emitted when user wants to duplicate a view (F-005)

    Entity: EntityInfo | null = null

    The entity to load views for

    ExportRequested: EventEmitter<void> = ...

    Emitted when user wants to export data to Excel

    IsDropdownOpen: boolean = false
    IsLoading: boolean = false
    ManageViewsRequested: EventEmitter<void> = ...

    Emitted when user wants to open the view management panel

    MyViews: ViewListItem[] = []
    OpenInTabRequested: EventEmitter<string> = ...

    Emitted when user wants to open the current view in its own tab

    Provider: IMetadataProvider | null

    If specified, this provider will be used for communication and for all metadata purposes. By default, if not provided, the Metadata and RunView classes are used for this and the default GraphQLDataProvider is used which is connected to the same back-end MJAPI instance as the Metadata and RunView classes. If you want to have this component connect to a different MJAPI back-end, create an instance of a ProviderBase sub-class like GraphQLDataProvider/etc, and configure it as appropriate to connect to the MJAPI back-end you want to use, and then pass it in here.

    QuickSaveRequested: EventEmitter<boolean> = ...

    Emitted when user wants to use the quick save dialog (F-001) Emits true when user explicitly requested "Save As New", false for general save

    RevertRequested: EventEmitter<void> = ...

    Emitted when user wants to revert to saved state (F-007)

    SaveViewRequested: EventEmitter<SaveViewRequestedEvent> = ...

    Emitted when user requests to save the current view

    SearchText: string = ''
    SelectedView: MJUserViewEntityExtended | null = null
    SelectedViewID: string | null = null

    Currently selected view ID (null = default view)

    SharedViews: ViewListItem[] = []
    ViewModified: boolean = false

    Whether the current view has unsaved modifications

    ViewSelected: EventEmitter<ViewSelectedEvent> = ...

    Emitted when a view is selected

    "ɵdir": unknown
    "ɵfac": unknown

    Accessors

    • get ProviderToUse(): IMetadataProvider

      Returns either the default Metadata provider or the one specified in the Provider property, if it was specified

      Returns IMetadataProvider

    • get RunQueryToUse(): IRunQueryProvider

      Returns either the default RunQuery provider or the one specified in the Provider property, if it was specified

      Returns IRunQueryProvider

    • get RunReportToUse(): IRunReportProvider

      Returns either the default RunReport provider or the one specified in the Provider property, if it was specified

      Returns IRunReportProvider

    • get RunViewToUse(): IRunViewProvider

      Returns either the default RunView provider or the one specified in the Provider property, if it was specified

      Returns IRunViewProvider

    Methods

    • Ensure the UserViewEngine cache is loaded, establish a one-time reactive subscription to it, and (re)derive the view lists for the current entity.

      The subscription is what keeps this dropdown correct: BaseEntity .Save()/.Delete() on a User View auto-invalidates the engine cache (an in-place array mutation), which emits on ObserveProperty('_views'). So when the workspace creates, updates, duplicates, or deletes a view, the list here re-derives automatically — no manual reload required, and no stale-cache race between a fire-and-forget reload and the async cache update.

      Returns Promise<void>

    • A callback method that is invoked immediately after the default change detector has checked data-bound properties if at least one has changed, and before the view and content children are checked.

      Parameters

      • changes: { [propName: string]: SimpleChange<any> }

        The changed properties.

      Returns void