<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Attribute inspector shows label from toc instead of attribute value subtype in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/attribute-inspector-shows-label-from-toc-instead/m-p/330700#M7910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a map with a simple layer from multiuser geodatabase. Let in be Points_layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Points_layer has a field with a type Short Integer and values [0,1,2,...] assigned to features and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;some other fields (any or none).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a map service with feature access capabilities. (Data came from SQL Server under AGS Server Enterprise Standard license 10.0 sp2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a simple application which displays mapservice layer and feature layer (everything as described in examples in flex api help)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I use select operation to select a feature and use Attribute Inspector Component to display&amp;nbsp; attributes. (All code works well for other fields with no errors, but in cases when using subtypes it behaves improperly)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example 1: we defined a subtype for a feature&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. 0 - "Red". 1 - "Green", 2 - "Yellow"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;case 1: layer (in a map document) was displayed using single symbol renderer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the attribute inspector we will see only the numeric value of the field&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we will see: 0 as a value in attributeinspector&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;case 2: layer (in a map document) was displayed using categories and all categories (all possible values are enabled)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we will see: Red - as a value in attributeinspector&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the attribute inspector we will see correct description only if we didn't edit the label text in symbology tab in layer properties. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If we changed that "label for ArcMap legend" - we will see that text in attribute inspector in flex application&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we will see: Red_edited_label_for_legend&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;case 3: layer (in a map document) was displayed using categories and some categories were grouped&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the attribute inspector we will a label for two categories as in case2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we will see Red; Green for example, if we grouped 0 and 1 values in symbology tab.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attribute inspector should not take any "legend related information", it should use only information from data feature class such as attribute values, subtype descriptions, domain codes' descriptions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions or comments?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Nov 2011 05:21:02 GMT</pubDate>
    <dc:creator>AntonNovichikhin</dc:creator>
    <dc:date>2011-11-25T05:21:02Z</dc:date>
    <item>
      <title>Attribute inspector shows label from toc instead of attribute value subtype</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/attribute-inspector-shows-label-from-toc-instead/m-p/330700#M7910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a map with a simple layer from multiuser geodatabase. Let in be Points_layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Points_layer has a field with a type Short Integer and values [0,1,2,...] assigned to features and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;some other fields (any or none).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a map service with feature access capabilities. (Data came from SQL Server under AGS Server Enterprise Standard license 10.0 sp2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a simple application which displays mapservice layer and feature layer (everything as described in examples in flex api help)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I use select operation to select a feature and use Attribute Inspector Component to display&amp;nbsp; attributes. (All code works well for other fields with no errors, but in cases when using subtypes it behaves improperly)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example 1: we defined a subtype for a feature&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. 0 - "Red". 1 - "Green", 2 - "Yellow"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;case 1: layer (in a map document) was displayed using single symbol renderer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the attribute inspector we will see only the numeric value of the field&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we will see: 0 as a value in attributeinspector&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;case 2: layer (in a map document) was displayed using categories and all categories (all possible values are enabled)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we will see: Red - as a value in attributeinspector&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the attribute inspector we will see correct description only if we didn't edit the label text in symbology tab in layer properties. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If we changed that "label for ArcMap legend" - we will see that text in attribute inspector in flex application&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we will see: Red_edited_label_for_legend&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;case 3: layer (in a map document) was displayed using categories and some categories were grouped&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the attribute inspector we will a label for two categories as in case2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we will see Red; Green for example, if we grouped 0 and 1 values in symbology tab.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attribute inspector should not take any "legend related information", it should use only information from data feature class such as attribute values, subtype descriptions, domain codes' descriptions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions or comments?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2011 05:21:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/attribute-inspector-shows-label-from-toc-instead/m-p/330700#M7910</guid>
      <dc:creator>AntonNovichikhin</dc:creator>
      <dc:date>2011-11-25T05:21:02Z</dc:date>
    </item>
  </channel>
</rss>

