GeoprocessingDataFile QML Type

  • Esri.ArcGISRuntime
  • GeoprocessingDataFile
  • A data file input or output parameter. More...

    Import Statement: import Esri.ArcGISRuntime
    Since: Esri.ArcGISRuntime 100.0
    Inherits:

    GeoprocessingParameter

    Inherited By:

    GeoprocessingRaster

    Properties

    Signals

    Methods

    Detailed Description

    Corresponds to GPDataFile parameter type on the service.

    See also Cancelable.

    Property Documentation

    [read-only] fetchFileStatus : Enums.TaskStatus

    Returns the Enums.TaskStatus of the fetchFile task (read-only).


    [since Esri.ArcGISRuntime 100.1] inputFilePath : url

    The input file path of this parameter.

    This should be the location on disk of a file that will be uploaded to the server that the geoprocessing task will run on.

    Note: Set this only for input parameters. This property will be ignored if uploadId is set.

    This property was introduced in Esri.ArcGISRuntime 100.1.


    [since Esri.ArcGISRuntime 100.1] uploadId : string

    The upload ID of this parameter.

    This should be the item ID of an item in the geoprocessing service's.

    Note: Set this only for input parameters. This will be the upload ID of an item previously uploaded to the server. If this property is set it will cause both the inputFilePath and URL properties to be ignored.

    This property was introduced in Esri.ArcGISRuntime 100.1.


    url : url

    The URL of the data file.

    If this object represents an input parameter, set this to a URL of the input data file. Ensure this URL is accessible to the service. A geoprocessing service can have an uploads REST resource associated with it for placing inputs.

    If this object represents an output parameter, this will be populated with the URL location of the output file on the service. The file can be retrieved by using fetchFile.

    Note: If inputFilePath or uploadId are set the url property will be ignored.


    Signal Documentation

    fetchFileStatusChanged()

    Emitted when the fetchFileStatus property changes.

    Note: The corresponding handler is onFetchFileStatusChanged.


    [since Esri.ArcGISRuntime 100.1] inputFilePathChanged()

    Emitted when the url inputFilePath changes.

    Note: The corresponding handler is onInputFilePathChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.1.


    [since Esri.ArcGISRuntime 100.1] uploadIdChanged()

    Emitted when the uploadId property changes.

    Note: The corresponding handler is onUploadIdChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.1.


    urlChanged()

    Emitted when the url property changes.

    Note: The corresponding handler is onUrlChanged.


    Method Documentation

    bool cancelTask(string taskId)

    Cancel the task with the ID taskId.

    Returns false if the task cannot be canceled or there is no task with the specified id taskId.

    See also Cancelable.


    string fetchFile(url filePath)

    Creates a task to fetch the file at url into a file or folder at filePath.

    If filePath is a directory, the file will be given the name of the file taken from the end of url. The full file path will be available as the returned task's result. Alternatively filePath can be a destination filename within an existing directory. Note that any pre-existing file at that location with the same name will be deleted first.

    Returns the ID of the task as a QString.


    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.