Select to view content in your preferred language

Viewer 3.2 Geoprocessing widget error

3852
7
Jump to solution
03-25-2013 08:53 AM
DanielSmith
Frequent Contributor
Hello,

Today i downloaded the new ArcGIS Viewer for Flex v3.2 from gitHub. The import and adding the swc as usual went fine but i got an error in the Georpocessing widget.

Specifically it was located in rendereres >input>GPInputDataFileParamItemRenderer.mxml>Line 132 (in the fileRef_uploadCompleteDataHandler() function).

The error says 'Access to undefined property JSON'.

Importing com.esri.ags.utils.JSONUtil and modifying the call on line 132 to:
handleResponseObject(JSONUtil.decode(event.data))

from:
handleResponseObject(JSON.parse(event.data));

resolved the error.

I am not using the geoprocessing widget right now, but will be soon so wanted to make sure this was gonna fly once i do use it.

-daniel
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
GISDev1
Deactivated User
0 Kudos
7 Replies
GISDev1
Deactivated User
Hello,

Today i downloaded the new ArcGIS Viewer for Flex v3.2 from gitHub. The import and adding the swc as usual went fine but i got an error in the Georpocessing widget.

Specifically it was located in rendereres >input>GPInputDataFileParamItemRenderer.mxml>Line 132 (in the fileRef_uploadCompleteDataHandler() function).

The error says 'Access to undefined property JSON'.

Importing com.esri.ags.utils.JSONUtil and modifying the call on line 132 to:
handleResponseObject(JSONUtil.decode(event.data))

from:
handleResponseObject(JSON.parse(event.data));

resolved the error.

I am not using the geoprocessing widget right now, but will be soon so wanted to make sure this was gonna fly once i do use it.

-daniel


I see that as well, but I don't get an error upon compiling. Which Flex SDK are you using?
0 Kudos
DanielSmith
Frequent Contributor
I see that as well, but I don't get an error upon compiling. Which Flex SDK are you using?


using default of 4.5.1
0 Kudos
GISDev1
Deactivated User
using default of 4.5.1


I think you need to use SDK 4.6 for Flex Viewer 3.2:
http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Flex_development/01m30000002000...
0 Kudos
DanielSmith
Frequent Contributor
I think you need to use SDK 4.6 for Flex Viewer 3.2:
http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Flex_development/01m30000002000...


ok, thanks. i have downloaded the SDK from http://www.adobe.com/devnet/flex/flex-sdk-download.html , extracted, and imported through Window>Preferences>Flash Builder > Installed Flex SDKs.

I then changed the line of code back to what it was previously, referenced the 4.6 SDK under the Flex SDK version in project properties and all errors are gone.

Many thanks for the quick help.
0 Kudos
GISDev1
Deactivated User
ok, thanks. i have downloaded the SDK from http://www.adobe.com/devnet/flex/flex-sdk-download.html , extracted, and imported through Window>Preferences>Flash Builder > Installed Flex SDKs.

I then changed the line of code back to what it was previously, referenced the 4.6 SDK under the Flex SDK version in project properties and all errors are gone.

Many thanks for the quick help.


That's good. If you click that green checkmark over on the right side of the post, it will mark the thread as Answered.
0 Kudos
DanielSmith
Frequent Contributor
That's good. If you click that green checkmark over on the right side of the post, it will mark the thread as Answered.


cool. also gave a +1 as you answered so quickly and correctly. many thanks again.
0 Kudos
LipLi
by
New Contributor
ok, thanks. i have downloaded the SDK from http://www.adobe.com/devnet/flex/flex-sdk-download.html , extracted, and imported through Window>Preferences>Flash Builder > Installed Flex SDKs.

I then changed the line of code back to what it was previously, referenced the 4.6 SDK under the Flex SDK version in project properties and all errors are gone.

Many thanks for the quick help.


Thanks a lot ! I was encountered this problems in morning ,luckly finding this log .
0 Kudos