Select to view content in your preferred language

infoWindowRenderer Coded Domain values

458
1
Jump to solution
08-03-2012 12:58 PM
MikeDahm
Frequent Contributor
I am using creating a mobile application and using layerInfoWindowRenderers for layers to populate infowindows.  The layers have coded domain values for some fields that I would like to use.  I have not found a way to access the coded domain fields for feature layers within a dynamic or tiled service.  Using the {data.XXXXX} tags gets me the code for the feature but I want to get the description of the coded value.  Any help would be greatly appreciated.

Below is the code I use within the ESRI:MAP to call the infoWindowRendered:

<esri:ArcGISTiledMapServiceLayer id="Water"                                         url="Tiled service url removed to post">     <esri:layerInfoWindowRenderers>  <esri:LayerInfoWindowRenderer id="Water36"      layerId="36"      infoWindowRenderer="components.infowindows.WaterValveInfoWindow"/>  </esri:layerInfoWindowRenderers> </esri:ArcGISTiledMapServiceLayer>



Below is the code for the WaterValveInfoWindow

 <?xml version="1.0" encoding="utf-8"?> <esri:LabelDataRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"        xmlns:s="library://ns.adobe.com/flex/spark"        xmlns:mx="library://ns.adobe.com/flex/mx"        xmlns:esri="http://www.esri.com/2008/ags">    <s:VGroup gap="0"       fontSize="20"       fontFamily="Myriad Web Pro">    <s:Label text="Location:    {data.Location}"/>    <s:Label text="Valve Type:   {data.Valve_Type}"/>    <s:Label text="Number:    {data.Survey_Point}"/>    <s:Label text="Elevation:               {data.Elevation}"/>              </s:VGroup> </esri:LabelDataRenderer>
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Mike,

   Be forwarned that it is not a simple one or two lines of code. Here is a threat where I provide a sample for returning coded domain values.

http://forums.arcgis.com/threads/10384-Retrieve-Coded-Domain-Values-from-Query?p=34040&viewfull=1#po...

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:

View solution in original post

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Mike,

   Be forwarned that it is not a simple one or two lines of code. Here is a threat where I provide a sample for returning coded domain values.

http://forums.arcgis.com/threads/10384-Retrieve-Coded-Domain-Values-from-Query?p=34040&viewfull=1#po...

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:
0 Kudos