sendDataToClient

void session.sendDataToClient ( String key, Object value ) (enterprise edition only)

Description

Send data to the external script that initiated the scrape. This isn't currently supported with all drivers (e.g., remote scraping session), check the documentation on the language of the external script for more information.

Parameters

  • key Name of the information being sent, as a string.
  • value Data to be processed by external script, supported types are Strings, Integers, DataRecords, and DataSets.

Return Values

Returns void.

Change Log

Version Description
4.5 Available for enterprise edition.

Examples

Send dataRecord to Client

 // Causes the current DataRecord object to be sent to the client
 // for processing.

 session.sendDataToClient( "MyDataRecord", dataRecord );