balib-2.2 incompatible with agslib-3.0?

568
3
06-27-2012 06:25 PM
MichaelDoolen
New Contributor
To my knowledge the latest Business Analyst Library version is 2.2, dated Dec2011.  When using this library with the ArcGIS API for Flex, version 3.0, I get the following runtime error.

ReferenceError: Error #1065: Variable com.esri.ags.utils::JSON is not defined.
 at com.esri.baserver.tasks::BAServerTaskUtils$/addOutputGeometryParameters()
 at com.esri.baserver.tasks.tradeareas::TradeAreaTaskParameters/toURLVariables()
 at com.esri.baserver.tasks.tradeareas::SimpleRingsParameters/toURLVariables()
 at com.esri.bacore.client::BATask/prepareURLVariables()
 at com.esri.baserver.tasks::BAServerTask/prepareURLVariables()
 at com.esri.bacore.client::BATask/send()
 at com.esri.baserver.tasks.tradeareas::SimpleRingsTask/execute()


The balib is referencing a JSON class that does not exist in 3.0.  Is there a newer version of the balib that references JSONUtil rather than JSON?

Also, out of curiousity, why not use the AS3 JSON class?

Thanks!

Michael Doolen
Tags (2)
0 Kudos
3 Replies
JeffGermain
New Contributor
I've implemented a temporary workaround here.
0 Kudos
TonyHowser
Esri Contributor
Jeff, you are awesome for sharing his Flex goodness with the wider Esri user community.

Here's some more info: http://forums.arcgis.com/threads/61532-BAO-API-for-Flex-and-ArcGIS-API-for-Flex-3.0

Cheers,
Tony
0 Kudos
AndrewHargreaves
Occasional Contributor II
This solution works too...
0 Kudos