GPMultiValueNote that support for the GPMultiValue parameter type was added at 10The fully-qualified data type for a GPMultiValue parameter is GPMultiValue:<memberDataType>, where memberDataType is one of the data types defined above. For ex. GPMultiValue:GPString, GPMultiValue:GPLong, etc.Note that at 10.0 only GPMultiValue:GPString data type is supportedFrom 10.1 onwards all GP data types will be supported in a GPMultiValue.The parameter value for GPMultiValue data types is a JSON array. Each element in this array is of the data type as defined by the memberDataType suffix of the fully-qualified GPMultiValue data type name.Example 1: GPMultiValue:GPString data type["Parcels", "Street Lights"]Example 2: GPMultiValue:GPLinearUnit data type:[ { "distance" : 345.67, "units" : "esriMiles" }, { "distance" : 36, "units" : "esriMiles" }]
var inputParams:Object = new Object(); inputParams.in_feature1 = "string type parameter"; // GPString = String inputParams.in_featureliste = ["Red", "Green", "Blue"]; // GPMultiValue:GPString = Array // yourGPTask.execute(inputParams); // - synchronous // yourGPTask.submitJob(inputParams, new AsyncResponder(resultfunctionname, faultfunctionname ...)); // - asynchronous
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.