dojo.require("esri.tasks.DataFile")
Description
(Added at v1.0)
A geoprocessing data object containing a data source.
Samples
Search for
samples that use this class.
Constructors
Properties
itemID | String | The ID of the uploaded file returned as a result of the upload operation. |
url | String | URL to the location of the data file. |
Constructor Details
Creates a new DataFile object. The constructor takes no parameters.
Property Details
The ID of the uploaded file returned as a result of the upload operation. For ArcGIS Server 10.1 and greater services that support uploads this class can be used to specify an uploaded item as input by specifying the ItemID.
Sample:
function requestSucceeded(result) {
var itemID = result.item.itemID;
var dataFile = new esri.tasks.DataFile();
dataFile.itemID = itemID;
var params = {
"Input_File": dataFile
};
gp.execute(params, gpResult);
}
URL to the location of the data file.