Class

The MessageManager is used to manage message and message action. When you need to publish a message in widget, you can use MessageManager.getInstance().publishMessage() .

Methods

MethodReturnsNotes
clearActionCache()void

Clear executed action cache explicitly. Widgets can call this when they need to force next background-trigger action execution. When a widget selects records or filters a data source but does not publish 'Record selection changes' / 'Data filtering changes', the cache should be cleared to avoid a previously cached action being skipped and not executed again.

publishMessage(message)Promise<void>

Publish a message: the registered message actions that match will be executed.

clearActionCache

Class Method
clearActionCache(): void

Clear executed action cache explicitly. Widgets can call this when they need to force next background-trigger action execution. When a widget selects records or filters a data source but does not publish 'Record selection changes' / 'Data filtering changes', the cache should be cleared to avoid a previously cached action being skipped and not executed again.

Returns 
void

publishMessage

Class Method
publishMessage(messageMessage): Promise<void>

Publish a message: the registered message actions that match will be executed.

Parameters
ParameterTypeNotes
messageMessage

The message to be published.

Returns 
Promise<void>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.