<layername>Water Gauges</layername>to
<layername>Stations</layername>
I think that should fix your problem you were having.Hi Robert,
I have a problem that I am hoping that youâ??ll be able to help me with. First, I really appreciate your identify widget. It is a fantastic tool, with exactly the functionality that I am looking for. Also, please know that your tremendous support for this tool is very much appreciated.
Initially, I want to use the tool for a very simple popup window with a hyperlink. Eventually, I want to use the full functionality of the tool. As a starting point, using the sample data provided, I simplified the tool through modifications to the config-infoimage.xml and IWT_Cameras.xml files for the AttRelateInfoWinWidget and the Louisville/LOJIC_PublicSafety_Louisville data. Everything worked as expected. After that, while trying to use my own data, I am totally stuck. I have scoured this formum as well as many of the other forums and have found some great information but I still canâ??t get past my problem.
I am unable to get the widget to operate with my operationallayers layer. The basemap comes up fine but the operational layer does not display. If I use the operational layer as a basemap it will display find so I know the server is publishing the data properly.
I am using ArcGIS Server 10
Identify widget 2.2.1
The ArcGIS viewer code
Flash builder 4
I have implemented crossdomain.xml on the server
I am working from my Home Computer accessing the server data
I have republished my data in a file geodatabase rather than a shapefile
My operational layer is in the same coordinate system as the base layer
Your help on this problem will be greatly appreciated.
Hereâ??s the code for my Config.xml:
<?xml version="1.0" ?>
<configuration>
<title>Attachment Relate Info Window Widget Sample</title>
<subtitle>Preview of attachment relate info window Widget for FlexViewer 2.2</subtitle>
<style>
<colors>0xFFFFFF,0x333333,0x101010,0x000000,0xFFD700,0x000000</colors>
</style>
<bing key="Al0VE_jsmagxk4LFghXGlK5JSHfC0tk-eHRubZv_eMYm6wzgQaStYks8g-wWcgk3"/>
<widget left="10" top="50" config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
<widget left="0" top="0" config="widgets/HeaderController/HeaderControllerWidget.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/>
<map initialextent="2161043 7283519 2856700 7679584" top="40">
<basemaps>
<layer label="Topo Map" type="dynamic" visible="true" alpha="1"
url="http://198.164.148.17/ArcGIS/rest/services/Flood_Jan_2011_SNB/MapServer"/>
<operationallayers>
<layer label="Water Gauges" type="dynamic" visible="true" alpha="1"
info="widgets/InfoTemplates/AttRelateInfoWinWidget.swf"
infoconfig="widgets/InfoTemplates/Sam_data.xml"
url="http://198.164.148.17/ArcGIS/rest/services/Gauges_05/MapServer/0"/>
<identifylayeroption>visible</identifylayeroption>
</operationallayers>
</basemaps>
</map>
<widgetcontainer />
</configuration>
Here is the code for my widget configuration xml file:
<?xml version="1.0" ?>
<configuration>
<fields>Gauge_URL,Name</fields>
<titlefield>Name</titlefield>
<links>
<linkfield icon_or_text_or_img="text" icon=""
linkalias="Go To Graphs..." linkprefix="" linksuffix="">Gauge_URL</linkfield>
</links>
<multiimagefield linkprefix="" linksuffix="" nexttooltip="Next" prevtooltip="Prev"></multiimagefield>
<layername>Water Gauges</layername>
<zoomscale>5000</zoomscale>
<csvseparator>,</csvseparator>
<labels>
<csvdefaultname>Related Records</csvdefaultname>
<exportbtnlabel>Export...</exportbtnlabel>
<export2csvoptionlabel>Export to CSV...</export2csvoptionlabel>
<export2txtoptionlabel>Export to Txt...</export2txtoptionlabel>
</labels>
</configuration>
<layername>Water Gauges</layername>
<?xml version="1.0" ?> <configuration> <title>Attachment Relate Info Window Widget Sample</title> <subtitle>Preview of attachment relate info window Widget for FlexViewer 2.2</subtitle> <style> <colors>0xFFFFFF,0x333333,0x101010,0x000000,0xFFD700,0x000000</colors> </style> <bing key="Al0VE_jsmagxk4LFghXGlK5JSHfC0tk-eHRubZv_eMYm6wzgQaStYks8g-wWcgk3"/> <widget left="10" top="50" config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/> <widget left="0" top="0" config="widgets/HeaderController/HeaderControllerWidget.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/> <map initialextent="2161043 7283519 2856700 7679584" top="40"> <basemaps> <layer label="Topo Map" type="dynamic" visible="true" alpha="1" url="http://198.164.148.17/ArcGIS/rest/services/Flood_Jan_2011_SNB/MapServer"/> </basemaps> <operationallayers> <layer label="Water Gauges" type="feature" visible="true" alpha="1" info="widgets/InfoTemplates/AttRelateInfoWinWidget.swf" infoconfig="widgets/InfoTemplates/Sam_data.xml" url="http://198.164.148.17/ArcGIS/rest/services/Gauges_05/MapServer/0"/> </operationallayers> </map> <widgetcontainer /> </configuration>
var data:Object = { id: String(this.widgetId), url: infoUrl, config: "widgets/InfoTemplates/IWT_Projects.xml" };
Hi,
I'm having trouble getting this to work with the query widget. It gets a heading for the info window but none of the fields and no relates or attachments are shown. I've set the info template <info>widgets/InfoTemplates/AttRelateInfoWinWidget.swf</info> in the query .xml and the info config file in the mxml:var data:Object = { id: String(this.widgetId), url: infoUrl, config: "widgets/InfoTemplates/IWT_Projects.xml" };
The info config file works on the layer if I use it without the query widget. Has anyone tried this and got it to work or know of any reason why this wouldn't work?
Cheers,
Shannaka