Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

The popup window config functionality I'm referencing is this... http://help.arcgis.com/en/webapps/flexviewer/help/index.html#//01m30000002q000000

This is my config...

<?xml version="1.0" ?>
<configuration>
    <title>Wind</title>
    <description>
        <![CDATA[
            Forecast is valid for {DATA_DATE} UTC
            Wind Direction: {WIND_DIRECTION} degrees
            Wind Speed: {WIND_SPEED} knots
            Wind Chill: {WIND_CHILL} F
        ]]>
    </description>
    <fields>
        <field name="DATA_DATE">
            <format useutc="true" />
        </field> 
        <field name="WIND_DIRECTION"/>         
        <field name="WIND_SPEED"/>
        <field name="WIND_CHILL"/>
    </fields>
</configuration>

The problem is that sometimes I want to display N/A for the Wind Chill value. This only occurs when wind chill is -999. Is it possible to display something different than what is in the layer data in this config driven popup? If so, how?

I'd rather not have the column for wind chill be a varchar and have the string "N/A" in it.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

No, it's not possible to display different text when WIND_CHILL=-999.

The popup config used in the Flex Viewer is based on the PopUpInfo in the ArcGIS API for Flex. The popup description is a "String" - see resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/… - that supports basic HTML - see help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/…. It does not support adding "logic"

share|improve this answer
    
Could you elaborate on your answer? Why is it not possible? –  R.K. Nov 30 '12 at 5:24
1  
The popup config used in the Flex Viewer is based on the PopUpInfo in the ArcGIS API for Flex. The popup description is a "String" - see resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/… - that supports basic HTML - see help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/…. It does not support adding "logic". –  Bjorn Svensson Nov 30 '12 at 7:10
    
Thank you! Added it to your answer :) –  R.K. Nov 30 '12 at 7:14
    
That's unfortunate since the old infoconfig popups have been deprecated, which do give me the power to have logic in the popup windows. –  Carter Dec 3 '12 at 23:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.