I am trying to set the Spatial Reference as seen below...but for some reason its not liking it...
gpParametersInsert.outputSpatialReference = SpatialReference.createWgs84();
If I include the line above as seen in the code below and run the app I get an error window that pops up....no error in the console.log
"AppStudio for ArcGIS AppRun has stopped woroking"
ANY ideas?
<SPAN class="keyword token">var</SPAN> gpParametersInsert <SPAN class="operator token">=</SPAN> ArcGISRuntimeEnvironment<SPAN class="punctuation token">.</SPAN><SPAN class="token function">createObject</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"GeoprocessingParameters"</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="punctuation token">{</SPAN>executionType<SPAN class="punctuation token">:</SPAN> Enums<SPAN class="punctuation token">.</SPAN>GeoprocessingExecutionTypeAsynchronousSubmit<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="comment token">// Request the output features be WGS84</SPAN>
gpParametersInsert<SPAN class="punctuation token">.</SPAN>outputSpatialReference <SPAN class="operator token">=</SPAN> SpatialReference<SPAN class="punctuation token">.</SPAN><SPAN class="token function">createWgs84</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">var</SPAN> inputsI <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">{</SPAN><SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">;</SPAN>
inputsI<SPAN class="punctuation token">[</SPAN><SPAN class="string token">"Item"</SPAN><SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> ArcGISRuntimeEnvironment<SPAN class="punctuation token">.</SPAN><SPAN class="token function">createObject</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"GeoprocessingString"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="punctuation token">{</SPAN>value<SPAN class="punctuation token">:</SPAN> varItem<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
gpParametersInsert<SPAN class="punctuation token">.</SPAN>inputs <SPAN class="operator token">=</SPAN> inputsI<SPAN class="punctuation token">;</SPAN>
<SPAN class="comment token">// Create the job that handles the communication between the application and the geoprocessing task</SPAN>
insertCursorJob <SPAN class="operator token">=</SPAN> insertCursorTask<SPAN class="punctuation token">.</SPAN><SPAN class="token function">createJob</SPAN><SPAN class="punctuation token">(</SPAN>gpParametersInsert<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
insertCursorJob<SPAN class="punctuation token">.</SPAN><SPAN class="token function">start</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>