TE Edit Control Java / HTML-JavaScript Help
Product page

MergeData

This event is sent to prompt your application for the data for a merge field.

boolean MergeData(TejEvent ev)
{
  ....
}

The relevant TejEvent fields:

String name;   // field name
String data;   // field data to be set by your application

This event may be called when using the TerMergeFields function. Normally, you would provide the field name and field data array to the TerMergeFields function. This event is fired when the editor finds a field name in the document which is not included in the field-name array provide to the TerMergeFields function. Your application can then provide the data for the field within this event.

The 'name' parameter indicates the field name for which the data is sought.

You would use the 'data' parameter to pass the field data for the given field.

This event should return true if data is available for the specified field. Otherwise, it should return a false value.

Please also refer to the Mail/Merge Support chapter for further information.