File

src/ui/common/services/tableio-target-server-side-event-handler.service.base.ts

Extends

SmartServerSideEventHandlerServiceBase

Implements

SmartSsehResponseTarget

Index

Methods

Methods

Public Async handleSsehResponse
handleSsehResponse(response: any, context: SmartSsehResponseContext)

Handles an SSEH service response through the live TableIO target. The component-specific UI mutations are owned by the target's SSEH adapter; this template applies the response parts in the protocol order while honouring the execution session lifecycle.

Parameters :
Name Type Optional Description
response any No

The SSEH response.

context SmartSsehResponseContext No

The response context.

The handling result.

Async initWithComponentInstance
initWithComponentInstance(componentInstance: T)

Initializes the server side event handler service with a component instance

Parameters :
Name Type Optional Description
componentInstance T No

The component instance to initialize the service with.

Returns : Promise<void>
Async handleAfterFieldsEnabled
handleAfterFieldsEnabled()

Handles the after fields enabled event

Returns : any
Async handleBeforeEnableFields
handleBeforeEnableFields(ev: SSEHBeforeEnabledFieldsEventArgs)

Handles the before enable fields event

Parameters :
Name Type Optional Description
ev SSEHBeforeEnabledFieldsEventArgs No

the before enable fields event

Returns : any
handleEvent
handleEvent(self: string, event: SSEHEvent | SSEHFieldEvent, context?: TableIOTargetContext, additionalArguments?: object, useQueue: unknown, options?: SmartSsehEventOptions)

Handles a server-side event handler event.

Parameters :
Name Type Optional Default value Description
self string No
event SSEHEvent | SSEHFieldEvent No
context TableIOTargetContext Yes
additionalArguments object Yes

Additional payload arguments

useQueue unknown No true

When false, executes outside the SSEH queue

options SmartSsehEventOptions Yes

Client-only event options

Returns : any
Abstract handleInitializingEvent
handleInitializingEvent(...args: any[])

Handles the initializing event

Parameters :
Name Type Optional Description
args any[] No

the arguments

Returns : Promise<any>

the result

Public hasEventHandlerDefinition
hasEventHandlerDefinition(self: string, eventName: string)

Returns whether a component or field has an SSEH handler for an event.

Parameters :
Name Type Optional Description
self string No

The event sender self value.

eventName string No

The event name.

Returns : boolean

True when a handler is registered.

issueEventHandlerCall
issueEventHandlerCall(self: string, event: SSEHFieldEvent | SSEHEvent, includeScreenValues: unknown, context?: TableIOTargetContext, questions?: ISmartUiAction, additionalArguments?: object, isResponseCurrent?: () => void, isRequestCurrent?: () => void)

Issues an event handler call

Parameters :
Name Type Optional Default value Description
self string No
  • The self parameter
event SSEHFieldEvent | SSEHEvent No
  • The event parameter
includeScreenValues unknown No event !== SSEHEvent.Initializing
  • The includeScreenValues parameter
context TableIOTargetContext Yes
  • The context parameter
questions ISmartUiAction Yes
  • The questions parameter
additionalArguments object Yes
  • Additional payload arguments
isResponseCurrent function Yes
  • Whether the response is current
isRequestCurrent function Yes
  • Whether the request is current
Returns : Observable<any>
  • The observable

results matching ""

    No results matching ""