importData

Imports data to the current form from a specified file.

For security reasons, if you provide the parameter, the importData method executes only when performed on certified documents. If you do not provide the parameter, the document does not need to be certified and the user is prompted to provide a location and filename.

Syntax

Reference_Syntax.importData( [ STRING param ] )

Parameters

param (Optional)

A valid string representing the location and name of the file from which the data will be imported. If you omit this parameter, a dialog box opens to let the user select the file manually.

This parameter is valid only on certified documents where the user has sufficient permissions.

Returns

Empty

Applies to

Version

XFA 2.1

Examples

JavaScript

xfa.host.importData("filename.xdp");

FormCalc

xfa.host.importData("filename.xdp")

// Ethnio survey code removed