Skip to main content
Version: 2.16.0

DataDrivenContentHandle

A DataDrivenContentHandle is used to dispatch messages to a data-driven content object. It can be obtained by calling registerDataDrivenContent.

Methods​

dispatch(message: Object): void​

Send a data selection message to the data-driven content object. For more information about the message object format, see the SAS Help Center.

deregister(): void​

Detach this handler from the attached data-driven content object. This cleans up resources and should be called when it is no longer necessary to communicate with the object.

The message object​

The message object is used to update a data-driven content object by indicating a subset of its data that should be selected.

resultName: string​

The name of the associated query result. This can be obtained from the receivedMessage object which will be sent to the onMessage callback of registerDataDrivenContent every time the data-driven content object is updated.

selections: Object[]​

An array of objects representing the data to be selected. Each object has a single row attribute which indicates the index of the row to select.

Example​

{
resultName: 'dd40',
selections: [{ row: 0 }, { row: 2 }]
}