Select to view content in your preferred language

Identify tool by Robert Scheitlin

865
7
06-21-2013 03:58 PM
LefterisKoumis
Frequent Contributor
When I set the property true for the onlythese in the layer tag, I get the results of all layers regardless. Also the weblink is not available as a link. Any ideas? Thanks.

<layers onlythese="true">
  <layer>
   <name>MPO</name>
   <id>0</id>
   <url>http://xxxxx/rest/services/agencies/agencies/MapServer</url>
   <fields>
    <field name="NAME"
        alias="Name: "/>
    <field name="LABEL"
        alias="Label: "/>
    <field name="STREET"
        alias="Street: "/>
       <field name="CITY_ZIP"
        alias="City and Zip: "/>
    <field name="WEBURL"
      alias="Website: "/>
   
   </fields>
   <links>
    <link includeinresults="false"
       field="WEBURL"
       alias="View Website"
       tooltip="Click to View Website">
     <linkprefix/>
     <linksuffix/>
     <iconfield/>
     <iconprefix/>
     <iconsuffix/>
    </link>
   </links>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
Tags (2)
0 Kudos
7 Replies
RobertScheitlin__GISP
MVP Emeritus
Lefteris,

   We have been through this allready...

http://forums.arcgis.com/threads/80928-identify-widget?p=285169#post285169
0 Kudos
LefterisKoumis
Frequent Contributor
Lefteris,

   We have been through this allready...

http://forums.arcgis.com/threads/80928-identify-widget?p=285169#post285169


ok. But I have no resolution. The layer is visible.

From the config.xml file:

<layer label="Agencies" type="dynamic" visible="true"
                   url="http://svctenvims.dot.ca.gov/dea_web_gis/rest/services/agencies/agencies/MapServer/">
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Lefteris,

   You have me at a loss as to why I can take what you have and get it to work but you can not. Maybe you should post your whole main config.xml and IdentifyWidget.xml. Also please tell me which version of the Viewer you are using as well as what version of my widget (to find this hold the alt key and click the widget title).
0 Kudos
LefterisKoumis
Frequent Contributor
Lefteris,

   You have me at a loss as to why I can take what you have and get it to work but you can not. Maybe you should post your whole main config.xml and IdentifyWidget.xml. Also please tell me which version of the Viewer you are using as well as what version of my widget (to find this hold the alt key and click the widget title).


widget is 3.3.2 and flexviewer 3.3.

Attached at the files as you requested. Thank you for taking the time to figure this bizare incident.
0 Kudos
RhettZufelt
MVP Notable Contributor
Well, tried to give it a test, but I can't get past the sandbox security.....

R_
0 Kudos
LefterisKoumis
Frequent Contributor
Well, tried to give it a test, but I can't get past the sandbox security.....

R_


Can you elaborate? What is sandbox security... This is a public website....
0 Kudos
RhettZufelt
MVP Notable Contributor
Figured it was a public site, that is why I mentioned it.  Maybe it is a security issue.

Sandbox security issues are when the site is not allowing/blocking traffic to Adobe apps.  For this server http://svctenvims.dot.ca.gov/dea_web_gis/rest/services/agencies ,  I can see the rest services, export map, view in all the options EXCEPT flash.

http://resources.arcgis.com/en/help/flex-api/concepts/index.html#//017p0000001w000000

If I try to load that mapservice into my FV app(s), I get a sandbox security error message telling me that this site doesn't allow me to load services into flash.

SecurityError: Error #2048: Security sandbox violation: http://gis01.wch-rcc.com/fv31_2/index.swf cannot load data from http://svctenvims.dot.ca.gov/dea_web_gis/rest/services/agencies/agencies/MapServer/?f=json.
 at com.esri.ags.tasks::BaseTask/handleFaultEvent()
 at mx.rpc::AsyncResponder/fault()
 at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyFault()
 at mx.rpc.events::FaultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
 at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
 at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
 at mx.rpc::Responder/fault()
 at mx.rpc::AsyncRequest/fault()
 at DirectHTTPMessageResponder/securityErrorHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at flash.net::URLLoader/redirectEvent()


I don't know that much about them, but it almost appears as if they are missing the  allow-access portion from the crossdomain file.  http://svctenvims.dot.ca.gov/crossdomain.xml   Not sure what "site-control" without "allow-access" is supposed to allow, but I get denied every time using FV3.1 or FV3.3.

This crossdomain from ESRI works "most of the time" http://geocode.arcgis.com/crossdomain.xml .

R_
0 Kudos