File

src/ui/grid/services/smart-grid-sseh-adapter.service.ts

Index

Methods

Methods

Public Async afterScreenValuesApplied
afterScreenValuesApplied()

Runs grid-specific work after screen values were applied.

Returns : Promise<void>
Public Async applyInitializingFieldControls
applyInitializingFieldControls(gridColumns: any[], response: any)

Applies Initializing field controls to cloned grid columns.

Parameters :
Name Type Optional Description
gridColumns any[] No

The cloned grid columns.

response any No

The SSEH response.

Returns : Promise<any[]>

The updated grid columns.

Public getFieldEventHandlerDefinitions
getFieldEventHandlerDefinitions()

Returns grid field SSEH handler definitions.

The field handler definitions.

Public getFields
getFields(columns: any[])

Returns grid fields for SSEH metadata processing.

Parameters :
Name Type Optional Default value Description
columns any[] No this.target.gridLayout?.columns || []

The source grid columns.

Returns : Array<unknown>

The fields.

Public getScreenValueRecord
getScreenValueRecord(dataSource: SmartDataSource)

Returns the record whose values should be sent as SSEH screen values. While the grid edits its own data source inline, the live edit FormGroup values are overlaid onto a copy of the committed record so that field events report the value currently being edited rather than the stale committed value. Otherwise the committed record is returned unchanged.

Parameters :
Name Type Optional Description
dataSource SmartDataSource No

The data source being serialized.

Returns : any

The screen-values after-image record.

Public Async handleComponentMethodCall
handleComponentMethodCall(parsedMethodCall: SSEHParsedMethodCall, methodCall?: any, context?: SmartSsehResponseContext)

Handles a component method call returned from SSEH.

Parameters :
Name Type Optional Description
parsedMethodCall SSEHParsedMethodCall No

The parsed call.

methodCall any Yes

The raw method call.

context SmartSsehResponseContext Yes

The response context.

Returns : Promise<void>
Public Async handleFieldControls
handleFieldControls(fieldControls: SSEHFieldControl[], context?: any)

Handles field controls returned by an SSEH response.

Parameters :
Name Type Optional Description
fieldControls SSEHFieldControl[] No

The field controls.

context any Yes

Optional grid columns for Initializing.

Returns : Promise<void>
Public Async handleTableIOAction
handleTableIOAction(tableIoAction: SSEHTableIOUIAction, context?: SmartSsehResponseContext)

Handles a TableIO action returned from SSEH.

Parameters :
Name Type Optional Description
tableIoAction SSEHTableIOUIAction No

The TableIO action.

context SmartSsehResponseContext Yes

The response context.

Returns : Promise<void>
Public initialize
initialize(target: SmartGridComponent)

Initializes the adapter with its Smart Grid target.

Parameters :
Name Type Optional Description
target SmartGridComponent No

The Smart Grid target.

Returns : void

results matching ""

    No results matching ""