File

src/smart-dynamic-launcher/smart-dynamic-launcher.service.ts

Index

Properties
Methods
Accessors

Methods

Public getLookupQueries
getLookupQueries()

Gets the lookup queries for the Dynamic Launcher

Returns : Observable<literal type>
Public getPreviouslySelectedDynamicForm
getPreviouslySelectedDynamicForm()

Gets the previously selected dynamic form

Returns : Observable<string>
Public launchModalRepositoryForm
launchModalRepositoryForm(formName: string, options: SmartFormLaunchOptions)

Launches a repository Smart Form as a modal.

Parameters :
Name Type Optional Default value Description
formName string No

The repository form name

options SmartFormLaunchOptions No {}

The launch options

Returns : Promise<SmartFormWindowRef | IProvidesDialogResult | void>

The modal result

Public launchRepositoryForm
launchRepositoryForm(formName: string, options: SmartFormLaunchOptions)

Launches a repository Smart Form using the server-driven launch contract.

Parameters :
Name Type Optional Default value Description
formName string No

The repository form name

options SmartFormLaunchOptions No {}

The launch options

Returns : Promise<SmartFormWindowRef | IProvidesDialogResult | void>

The launch result

Public Async openDynamicFormLauncher
openDynamicFormLauncher(formLayout: string, sameWindow?: boolean, options?: NavigationOptions)

Launches a Smart Form using the Dynamic Form Launcher

Parameters :
Name Type Optional Description
formLayout string No

the form layout

sameWindow boolean Yes

indicates whether to launch the form in the same window

options NavigationOptions Yes

optional navigation options

Returns : Promise<void | WindowRef>

{(void | WindowRef)}

Public Async openFormSelectionDialog
openFormSelectionDialog(viewContainer: unknown)

Opens the Dynamic Launcher's Form Selection Dialog

Parameters :
Name Type Optional Default value
viewContainer unknown No this.viewContainer || this._defaultWindowContainer
Returns : Promise<string>

{Observable}

Public Async openFormSelectionDialogWithOptions
openFormSelectionDialogWithOptions(viewContainer: unknown)

Opens the Dynamic Launcher's Form Selection Dialog and returns launch options.

Parameters :
Name Type Optional Default value Description
viewContainer unknown No this.viewContainer || this._defaultWindowContainer

The view container.

The selected form and form parameter.

Public selectFormAndLaunch
selectFormAndLaunch(sameWindow?: boolean, options?: NavigationOptions)
Parameters :
Name Type Optional
sameWindow boolean Yes
options NavigationOptions Yes
Returns : any
Public setDefaultWindowContainer
setDefaultWindowContainer(windowContainer: ViewContainerRef)

Sets the default window container for new Dynamic Launcher windows

Parameters :
Name Type Optional Description
windowContainer ViewContainerRef No

the default window container

Returns : void

Properties

Readonly dynamicLauncherWindowOpened
Type : ReplaySubject<SmartDynamicLauncherWindowOpenedEventArguments>
Default value : new ReplaySubject<SmartDynamicLauncherWindowOpenedEventArguments>(1)
Readonly selectedLayout
Type : ReplaySubject<string>
Default value : new ReplaySubject<string>( 1 )

Accessors

defaultWindowContainer
getdefaultWindowContainer()

The default window container to use for new Dynamic Launcher windows

Returns : ViewContainerRef

results matching ""

    No results matching ""