Select to view content in your preferred language

Identify Widget Question

4037
59
05-20-2011 11:38 AM
TomSedlacek
Regular Contributor
This question pertians to Robert Scheitlins' Identify Widget 2.3.1.
I have added the widget to my web app and it's exactly what I'm looking for.  HOWEVER, it only seems to identify those layers that are a part of my basemap.  I've modified the "onlythese" code in the compiled version six ways from Sunday and it will not id any of the layers in my 'operational layers'.

Any ideas anyone?  Robert?

Thanks!

Tom Sedlacek GISP
Engineering Tech / GIS
Clark Regional Wastewater District
360-993-8811
Email: TSedlacek@CRWWD.com
Tags (2)
0 Kudos
59 Replies
RobertScheitlin__GISP
MVP Emeritus
Wil,

   You are experiencing these error because of multuple syntax errors you are entering into the XML:

This is what you have for the date field:
<field name="ESRIdate" alias="Date"/>popuponly="true" dateformat="YYYY/MM/DD" useutc="true"/>


What I have indicated in red is telling the parser to ignore everything behind it (basically).

It should look like this:

<field name="ESRIdate" alias="Date" popuponly="true" dateformat="YYYY/MM/DD" useutc="true"/>


Next is if you are going to use all equals true than use this one line:
<fields all="true" />

Instead of:
<fields all="true">
<!--
                <field name="Address" alias="Address" />
                <field name="City" alias="City" popuponly="true"/>
                <field name="State" alias="State" popuponly="true"/>
                <field name="Postcode" alias="Postcode"/>
-->
            </fields>



If you use all equal true than you do not have the option to format ANY of the fields.
0 Kudos
NicholasRanicar
Emerging Contributor
Could you please tell me what changes you made to fix this issue?
thanks,
Nic



    - Mouse over graphics now works even if you have the widget set to keepidentifyactive.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nic,

   That is done through the setting of this last Boolean value:

setMapAction(DrawTool.MAPPOINT, status, identMarkerSymbol, drawEnd, false, true);
0 Kudos
NicholasRanicar
Emerging Contributor
Hi Robert,
thanks very much for replying. I tried making that change in the activateIdentifyTool function but I'm still not seeing the mouseover event being fired if keepIdentifyActive is true. We're on version 3.0 of your widget so I guess I'll just upgrade to 3.01. I was hoping I might be able to get this working without the upgrade.
Thanks very much for all of your tools and help on this forum.

Update
My mistake, I was short one parameter on the function call, when I ADD the final boolean value it works as expected.

Nic
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   A new version is now available.

* 3.0.2 - Fixed the Gray Circle Of Death (GCOD) people were seeing because of the glowfilter
              being applied to graphics not completely in the map extent.
           - Fixed the identifying features message to more accurately report the identify progress.
0 Kudos
CaseyMcMillin
Emerging Contributor
I need help configuring a link to a network folder rather than a website link.  The link function of the identify tool appears to add "http:" syntax to my link prefix and changes all back slashes to forward slashes.
0 Kudos
RhettZufelt
MVP Notable Contributor
You just need to create a virtual directory on your server that "points to" the network folder, then aim you link at that.

This way, you get a http:// link as the browser expects.

R_
0 Kudos
CaseyMcMillin
Emerging Contributor
I got it working (though it only works in IE and not Chrome).

Now to my next issue if anybody can help...
The Identify widget works wonderfully on my host machine, but when I open the Flex application on my local machine the Identify Widget returns the following error sequence:

[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]

http response status: 404

Fault code: Server.Error.Request

Fault info: HTTP request error

Fault details: Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://gis01/flexviewers/Test/widgets/Identify/IdentifyWidget_2.xml

Any ideas?
0 Kudos
RhettZufelt
MVP Notable Contributor
Most likely a path issue.  Maybe the services, etc. are being loaded as http://localhost/flexviewers instead of http://gis01.sub.com/flexviewers? (fully qualified domain name)

Often, if you have fiddler running and capture the http requests, it will give you an idea of why it is failing.

R_
0 Kudos
CaseyMcMillin
Emerging Contributor
I believe that is exactly what is happening here.  I am very new to this process though and do not know where to change that.  Is that because I added those services to Flex using the local host instead of the full domain?
0 Kudos