Select to view content in your preferred language

ThematicQueryWidget

2309
6
09-08-2011 01:51 PM
JustinGleeson
Deactivated User
Hi,

I'm trying to find the config and swf files for the ThematicQueryWidget as displayed in the US Thematic Mapping Viewer.

http://help.arcgis.com/en/webapps/flexviewer/live/index.html?config=apps/config-thematic.xml

Does anyone know where I can get a link to this widget?

many thanks
Tags (2)
0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Justin,

   Sure just expand the samples folder in your Flex Viewer project and you will see it there.
0 Kudos
JustinGleeson
Deactivated User
Justin,

   Sure just expand the samples folder in your Flex Viewer project and you will see it there.


Robert,

thanks again. I've added this to my code.

I'm displaying a deprivation map and want to use this to query the results. Have included the widget and adjusted the ThematicQueryWidget.xml to show a result for the field ID06_csa. It's not returning any results at all. Any idea what is wrong here?

many thanks

Justin

ThematicQueryWidget

<?xml version="1.0" ?>
<configuration>
    <info>widgets/Samples/ThematicQuery/InfoColumnChartWidget.swf</info>
    <!-- labelref should match the label of the operational layer's label in main config. -->
    <theme labelref="All-Island Deprivation Index" >
       <query layer="1" minscale="0" maxscale="25000001" legendurl="assets/images/Legend_unemp.png" > <!-- layer 4 is a state layer -->
           <listfields>
                <field name="ID06_CSA" alias="Test" />
           </listfields>
           <columnchartfields>
           </columnchartfields>
       </query>

    </theme>
</configuration>




Config File



<operationallayers>  
   <layer label="RoI County" type="dynamic" visible="false" alpha="0.5"
                   url="http://lapname/ArcGIS/rest/services/RoI_Counties/MapServer"/>
   <layer label="NI District" type="dynamic" visible="false" alpha="0.5"
                   url="http://lapname/ArcGIS/rest/services/NI_Districts/MapServer"/>
   <layer label="All-Island Deprivation Index" type="dynamic" visible="false" alpha="0.5"
                   url="http://lapname/ArcGIS/rest/services/AIDeprivationIndex/MapServer"/>
        </operationallayers>
    </map>
    <!-- widgets organized into widget containers that manage close/open etc -->
    <!-- supported layout property options: horizontal(default)|float|vertical|fix-->
    <widgetcontainer layout="float">
        <widget label="Bookmarks"         left="430" top="90"
                icon="assets/images/i_bookmark.png"
                config="widgets/Bookmark/BookmarkWidget.xml"
                url="widgets/Bookmark/BookmarkWidget.swf"/>
        <widget label="Print" left="390" top="400"
                icon="assets/images/i_print.png"
                config="widgets/Print/PrintWidget.xml"
                url="widgets/Print/PrintWidget.swf"/>
  <widget label="LayerList" left="100" top="50"
                icon="assets/images/i_layers.png"
                config="widgets/LayerList/LayerListWidget.xml"
                url="widgets/LayerList/LayerListWidget.swf"/>
  <widget label="Identify" left="100" top="50"
                icon="assets/images/i_layers.png"
                config="widgets/IdentifyWidget/Identify/IdentifyWidget.xml"
                url="widgets/IdentifyWidget/Identify/IdentifyWidget.swf"/>
  <widget label="Pick a theme" preload="open" left="105" top="55" icon="assets/images/i_thematic.png"
  config="widgets/samples/ThematicQuery/ThematicQueryWidget.xml"
  url="widgets/samples/ThematicQuery/ThematicQueryWidget.swf" />
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Justin,

   I can't say that I have even played with this particular widget, much less have any experience configuring it.
0 Kudos
MehulChoksey
Esri Contributor
Justin,

Are you trying to query ID06_csa from http://lapname/ArcGIS/rest/services/AIDeprivationIndex/MapServer/1 ? if yes, then what does your response look like for following url: http://lapname/ArcGIS/rest/services/AIDeprivationIndex/MapServer/1?f=pjson
0 Kudos
JustinGleeson
Deactivated User
Justin,

Are you trying to query ID06_csa from http://lapname/ArcGIS/rest/services/AIDeprivationIndex/MapServer/1 ? if yes, then what does your response look like for following url: http://lapname/ArcGIS/rest/services/AIDeprivationIndex/MapServer/1?f=pjson



Hi,

I'm trying to show the results from a variable (ID06_CSA) within AIDeprivationIndex but not having any luck. The config file references this as below and it displays properly within my viewer

<layer label="All-Island Deprivation Index" type="dynamic" visible="false" alpha="0.5"
                   url="http://na-lap-347/ArcGIS/rest/services/AIDeprivationIndex/MapServer"/>

It is calling the thematicquerywidget and this seems to display properly as well but will not show any results when the map is queried. The thematicquerywidget references the InfoColumnChartWidget.swf as per the sample. I have noticed that there is no InfoColumnChartWidget.xml in the sample directory however there is a mapswitcherwidget_thematic.xml though. I wonder if this is the issue.

help would be great

thanks
0 Kudos
MehulChoksey
Esri Contributor
Justin,

InfoColumnChartWidget.xml is not required.

In your browser, could you paste this url http://na-lap-347/ArcGIS/rest/services/AIDeprivationIndex/MapServer/1?f=pjson  and tell  what the response looks like?

Mehul
0 Kudos