Popup info is adding many numbers behind decimal point?

4256
34
09-26-2012 11:37 AM
ReedDavis
New Contributor
I have configured my popup to show percent unemployment for the county that is clicked, the popup displays the information but adds about ten bogus numbers after the decimal on some counties. The source data is configured as follows: The percent unemployment field is float with precision of 6 scale of 2, number of decimal places 2. The same is occurring in the search tool which leads me to believe it is a source data formatting issue. Any Ideas?
Tags (2)
0 Kudos
34 Replies
RobertScheitlin__GISP
MVP Emeritus
RD,

   Sure look at the help documentation for configuring popups on this page:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Pop_up_configuration_files/01m3...

Look for fields and format and then precision.
0 Kudos
ReedDavis
New Contributor
It is saying I can disable precision by setting it to -1, here is my popup

<configuration>
    <title>{CONAME} County Percent Unemployment</title>
    <description><![CDATA[Percent Unemployment: {PECENT_UNE}%]]></description>
</configuration>

Where would I add the precision-1 ?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
RD,

   In the fields tag that you have yet to add:

<configuration>
    <title>{CONAME} County Percent Unemployment</title>
    <fields>
        <field name="PECENT_UNE">
            <format precision="-1" />
        </field>
    </fields>
    <description><=!=[=C=D=A=T=A=[Percent Unemployment: {PECENT_UNE}%]=]=></description>
</configuration>
0 Kudos
ReedDavis
New Contributor
Coping it directly does not seem to work, tried a couple variations with no luck, still the same issue?
0 Kudos
TomMagdaleno
Occasional Contributor III
Can you create a new text field in the raw data and copy the data over as text?  Then you can format exactly like you want.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
RD,

   The description tag go messed up in the forum post replace that with what you already had.
0 Kudos
ReedDavis
New Contributor
Replaced, still no luck. The strange thing is when I use the Identify tool the correct percentage shows ex: 15.3%, in popups and search widget I get 15.300000890034003 or some other random string of numbers!?!? Whats even more strange a couple of my counties don't seem to have the issue at all, even though all data is sourced from the same field and table.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
RD,

   So your config looks like this?
<configuration>
    <title>{CONAME} County Percent Unemployment</title>
    <fields>
        <field name="PECENT_UNE">
            <format precision="-1" />
        </field>
    </fields>
    <description><![CDATA[Percent Unemployment: {PECENT_UNE}%]]></description>
</configuration>
0 Kudos
ReedDavis
New Contributor
Identical. I also tried different values for the "-1" just for kicks with no luck.
0 Kudos