DataMerge

A data merge object.

Methods:

getElements, mergeRecords, removeDataSource, selectDataSource, toSource, toSpecifier, updateDataSource

Objects:

DataMergeFields, DataMergePreference, Object

Preferences:

DataMergePreference

Property Listing

Property

Type

Access

Description

dataMergeFields

DataMergeFields DataMergeField

readonly

A collection of data merge fields.

dataMergePreferences

DataMergePreference

readonly

The data merge preference properties that define the layout and content of the target page.

parent

Document

readonly

The parent of the DataMerge (a Document).

properties

Object

read/write

A property that allows setting of several properties at the same time.

Method Listing

DataMerge getElements ()

Resolves the object specifier, creating an array of object references.

undefined mergeRecords (outputOversetReportFile:File)

Merges records and produces an optional overset report.

Parameter

Type

Description

outputOversetReportFile

File

The path to the file in which to store the overset report. (Optional)

undefined removeDataSource ()

Removes the data source.

undefined selectDataSource (dataSourceFile:File)

Specifies the file to use as the data source.

Parameter

Type

Description

dataSourceFile

File

The path to the data source file.

String toSource ()

Generates a string which, if executed, will return the DataMerge.

String toSpecifier ()

Retrieves the object specifier.

undefined updateDataSource ()

Updates the data source file with the most current data.

Object of

Document.dataMergeProperties

DataMergeField.parent

DataMergePreference.parent

Return

DataMerge.getElements()