THANK YOU FOR YOUR RESPONSE
I have been trying to use that sample for a bit now....new to this....I am simply trying to pass a few parameters to a GP service. Not sure if I have to create a FeatureCollectionTable?
This does not work...but i know the GP service works because I can manually run it....I just cannot figure out how to pass the values
Does anything stick out to you below.
Im stuck on #3
Here is some conceptual doc for GP in Runtime - Run a geoprocessing task—ArcGIS Runtime SDK for Qt | ArcGIS for Developers
If I console.log viewshedParameters below there is nothing in the objects:{} in the object
viewshedTask.calculateViewshed();
GeoprocessingTask {
id: viewshedTask
url: "https://xxxx/arcgis/rest/services/x/x/GPServer/NewScriptToRun"
function calculateViewshed() {
var paramsvalue = {'OBJECTID':ObjectID,'comments':Comments};
var viewshedParameters = ArcGISRuntimeEnvironment.createObject("GeoprocessingParameters",
{executionType:Enums.GeoprocessingExecutionTypeSynchronousExecute,objectName:"Parameter Name",inputs:paramsvalue });
viewshedJob = viewshedTask.createJob(viewshedParameters);
viewshedJob.start();
}
}
import arcpy
from arcpy import env
import os
varObjectID = arcpy.GetParameterAsText(0)
varItem = arcpy.GetParameterAsText(1)