DataMerge
A data merge object.
Go to Property Listing | Method Listing
Methods:
addEventListener, exportFile, getElements, mergeRecords, removeDataSource, removeEventListener, selectDataSource, toSource, toSpecifier, updateDataSource
Objects:
Boolean, DataMergeFields, DataMergePreference, EventListeners, Events, Object, Preferences
Preferences:
Hierarchy:
Superclass: Preference
Class: DataMerge
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
A collection of data merge fields. |
||
readonly |
The data merge preference properties that define the layout and content of the target page. |
||
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
readonly |
The parent of the DataMerge (a Document). |
||
readonly |
A collection of preferences objects. |
||
read/write |
A property that allows setting of several properties at the same time. |
Method Listing
EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Adds an event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The event type. |
|
handler |
JavaScriptFunction |
The event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
undefined exportFile (to:File, using:PDFExportPreset, outputOversetReportFile:File)
Merges records and exports to PDF.
Parameter |
Type |
Description |
---|---|---|
to |
The path of exported PDF file. |
|
using |
The PDF export style to use. (Optional) |
|
outputOversetReportFile |
The path to the file in which to store the overset report. (Optional) |
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 |
The path to the file in which to store the overset report. (Optional) |
undefined removeDataSource ()
Removes the data source.
Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Removes the event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The registered event type. |
|
handler |
JavaScriptFunction |
The registered event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
undefined selectDataSource (dataSourceFile:File)
Specifies the file to use as the data source.
Parameter |
Type |
Description |
---|---|---|
dataSourceFile |
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
Event.parent
EventListener.parent
MutationEvent.parent
Preference.parent