TX Sheet Control

EditorUi.loadMergeData Method

Method

Loads the application's mail-merge data source without putting transient data in workbook JSON.

Owner: EditorUi. Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.

Syntax

loadMergeData(source: Record<string, unknown> | string | null): MailMergeDataSourceInfo | null

Parameters

ParameterTypeOptionalDescription
sourcestring | Record<string, unknown> | nullNoObject data, JSON text or null to remove the source.

Return Value

MailMergeDataSourceInfo | null.

A detached source description used by the Reporting controls.

Examples

Pass an existing EditorUi from the owning document. Related handles and input bytes must belong to the intended document and application; the function applies the operation and inspects its result.

import type { EditorUi } from '@txtextcontrol/tx-sheet-control';

function applyEditorUiLoadMergeData(editorUi: EditorUi, source: null | string | Record<string, unknown>) {
    const result = editorUi['loadMergeData'](source);
    console.log(result);
}

Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

See Also