Select to view content in your preferred language

Subtypes in Popups not working Flex 2.5

500
2
04-06-2012 07:15 AM
KenCarrier
Deactivated User
Can anyone help me figure out why subtypes are not displaying properly within Popups using the 2.5 API?

The tech I was working with referenced this bug.

#NIM073464  Enhance the Pop up's to show coded domain value descriptions instead of coded values in flex viewer

I am not entirely sure this relates to my issue because my domains are coming across just fine in the popups, but the Subtypes are showing up as numbers/integers and not the description.

I know Robert Scheitlin was able to figure out how to make this work in his widgets.

Am I doing something wrong here

Popup_WaterHydrant.xml:
<?xml version="1.0" ?>
<configuration>

<title>
Water Hydrant
FACILITYID = {FACILITYID}
</title>
    
    <description>
  <![CDATA[Get More Info: <a href="http://10.2.0.39/mcws/applications/AGS_Reports/GISAssetDetail.cfm?Fieldname=FACILITYID&VALUE={FACILITYID}" target=_blank><b>Click Here</b></a><br>Legacy ID: <b>{LEGACYID}</b><br>Source: <b>{SOURCE}</b><br>Asset Maintainer: <b>{ASSETMAINTAINER}</b><br>Install Date: <b>{INSTALLDATE}</b><br>Subtype: <b>{SUBTYPECD}</b><br>Inlet Diameter: <b>{INLETDIAMETER}</b><br>Life Cycle Status: <b>{LIFECYCLESTATUS}</b>]]>
  </description>
    
    <fields>
  <field name="INSTALLDATE" alias="Install Date:"  visible="true">
            <format dateformat="shortDate"/>
        </field>
        
        <field name="SUBTYPECD" alias="Subtype"  visible="true">
            
        </field>
    </fields>

</configuration>


REST Endpoint
SUBTYPECD (Type: esriFieldTypeInteger, Alias: Subtype)

Type ID Field: SubtypeCD

Types:

      ID: 1
      Name: Standard_Hyd
      Domains:
          o Field Name: SOURCE
            Inherited
          o Field Name: PLACEMENTMETHOD
            Inherited
          o Field Name: ASSETMAINTAINER
            Inherited
          o Field Name: INLETDIAMETER
            Inherited
          o Field Name: LIFECYCLESTATUS
            Inherited

ID: 3
Name: SpecialUse_Hyd
Domains:

    * Field Name: SOURCE
      Inherited
    * Field Name: PLACEMENTMETHOD
      Inherited
    * Field Name: ASSETMAINTAINER
      Inherited
    * Field Name: INLETDIAMETER
      Inherited
    * Field Name: LIFECYCLESTATUS
      Inherited
Tags (2)
0 Kudos
2 Replies
PatrickMullen1
Occasional Contributor
While this might not be the exact issue, I do know that the description tag or title/field tag do not work together. It is either one or the other.
0 Kudos
KenCarrier
Deactivated User
While this might not be the exact issue, I do know that the description tag or title/field tag do not work together. It is either one or the other.


Glomar,

Respectively I would have to disagree, in order to get dates to work correctly in some cases you must specify how you want the date formatted within the field tags otherswise they can show up as a bunch of jumbled numbers that make no sense to the end user.

Esri and Robert Scheitlin pointed this out to me as a workaround for a known bug. So if you specify a date in the description tag and the values that come back make no sense, specify how you want the date formatted in the field tag and they will be formatted as such.

Hope this helps!
0 Kudos