Select to view content in your preferred language

Identify Widget version 2.5.8

537
3
05-22-2012 12:29 PM
DerekHunter1
Deactivated User
I am using Flash Builder 4.6 to build the Flex Viewer v2.5 and the Identify Widget v2.5.8 and am getting these errors. Per search I added the as3corelib with the same errors afterwards.

1120: Access of undefined property JSON. IdentifyWidget.mxml /AGF Flex Viewer 2.5/src/widgets/Identify line 463 Flex Problem

1120: Access of undefined property JSON. IdentifyWidget.mxml /AGF Flex Viewer 2.5/src/widgets/Identify line 587 Flex Problem

Can not resolve a multiname reference unambiguously. JSON (from C:\Program Files\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0\frameworks\libs\player\11.1\playerglobal.swc(JSON, Walker)) and com.esri.ags.utils:JSON (from C:\Users\hunter\Adobe Flash Builder 4.6\AGF Flex Viewer 2.5\libs\agslib-2.5-2011-11-30.swc(com.esri.ags.utils:JSON)) are available. IdentifyWidget.mxml /AGF Flex Viewer 2.5/src/widgets/Identify Unknown Flex Problem
Tags (2)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
Derek,

   Are you sure that you have version 2.5.8?... Those line numbers do not correspond to the error you are getting and you should not be getting that error at all in version 2.5.8... That error what take care of a couple of versions ago by adding com.esri.ags.utils. prefix to all JSON calls. As far as the as3corelib I would go ahead and delete that as what ever search you were looking at did not pertain to this situation.
0 Kudos
JustinStangl
Emerging Contributor
Hi Robert,

I've been utilizing the flex identify widget for flex viewer the past two years, however i recently purchased flash builder 4.6 in order to customize and compile widgets of my own.  I am attempting to create an identify tool with a "results list" that displays GIS data from individual fields in individual results boxes ('scrollers').  (I have a PDF attached that shows what i am attempting to accomplish.) 

Right now, i have the multiple 'scrollers' that i need, but they all show the same information (as defined in the XML).

I understand that the dataProvider 'identifyArrayCollection' somehow points to my 'identifyconfig.xml' that lists all of the fields from my GIS/REST.  I do not understand how to only show one field per result box.  Do i need to change the dataProvider to XMLList?,  Can i point the dataProvider to a specific GIS field/REST?,  Do i need multiple XML's?,  Do i need to add code to the XML for this?  Or is there an easier way to do this?  If you have time to possibly point me in the right direction, i would greatly appreciate it.

Regards
-JS
0 Kudos
JustinStangl
Emerging Contributor
I have also attempted to create a "data grid" or "form" style results box using the feature tooltip widget, as opposed to the standard  'one by one'  list results format.  But every time i alter the code to add another 'box' for the <field> data from the tooltip.xml, it gives me an error stating that functions definitions are duplicated.

Is there a way to just alter the [configfeaturelayers]:Array to only show individual data fields rather than all CSV fields defined in the XML?, and then duplicate that code a few times to account for the rest of the data fields individually?

And also the tooltip popup only works when the pan map tool is activated (not zoom in/out), is there a way to change this?
Thank you for your patience in advance.
-JS
0 Kudos