<field name="PRIORITY_DATE" alias="PRIORITY_DATE" visible="true"/> <format precision="0" usethousandsseparator="false"/> </field>
<field name="PRIORITY_DATE" alias="PRIORITY_DATE" visible="true"> <format precision="0" usethousandsseparator="false"/> </field>
I tried removing </field> and that removed the popup error HOWEVER the original problem still remains - I still have commas in my number: 19,990,131
I had a typo in my config statement that Robert fixed in his post. The format statement is a child of the field tag, so you can't terminate the parent. Just remove the slash in red and should get rid of that error.R_
I tried that edit but I got an error message: Map Manager: A problem occurred while parsing the configuration file popups/PopUp_1.xml Error #1085 [ATTACH=CONFIG]22415[/ATTACH] my xml file is below: <?xml version="1.0" ?> <configuration> <fields> <field name="TPOD_TAG" alias="TPOD_TAG" visible="true"/> <field name="STRM_NAME" alias="STRM_NAME" visible="true"/> <field name="STATUS" alias="STATUS" visible="true"/> <field name="LICENCE_NO" alias="LICENCE_NO" visible="true"/> <field name="PRIORITY_DATE" alias="PRIORITY_DATE" visible="true"/> <format precision="0" usethousandsseparator="false"/> </field> <field name="LIC_STATUS" alias="LIC_STATUS" visible="true"/> <field name="PURPOSE" alias="PURPOSE" visible="true"/> </fields> <showattachments>false</showattachments> <showrelatedrecords>false</showrelatedrecords> </configuration>
<?xml version="1.0" ?> <configuration> <fields> <field name="TPOD_TAG" alias="TPOD_TAG" visible="true"/> <field name="STRM_NAME" alias="STRM_NAME" visible="true"/> <field name="STATUS" alias="STATUS" visible="true"/> <field name="LICENCE_NO" alias="LICENCE_NO" visible="true"/> <field name="PRIORITY_DATE" alias="PRIORITY_DATE" visible="true"/> <format precision="0" usethousandsseparator="false"/> </field> <field name="LIC_STATUS" alias="LIC_STATUS" visible="true"/> <field name="PURPOSE" alias="PURPOSE" visible="true"/> </fields> <showattachments>false</showattachments> <showrelatedrecords>false</showrelatedrecords> </configuration>
Guys, The format tag is child of a field tag (not an attribute).Documentation here:http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Pop_up_configuration_files/01m30000002q000000/Joshua, Currently in App Builder 3.1 there is no way to apply formatting to fields. Here is your data with the formatting you were attempting applied properly:<configuration> <fields> <field name="TPOD_TAG" alias="TPOD_TAG" visible="true" /> <field name="STRM_NAME" alias="STRM_NAME" visible="true" /> <field name="STATUS" alias="STATUS" visible="true" /> <field name="LICENCE_NO" alias="LICENCE_NO" visible="true" /> <field name="PRIORITY_DATE" alias="PRIORITY_DATE" visible="true"> <format precision="0" usethousandsseparator="false" /> </field> <field name="LIC_STATUS" alias="LIC_STATUS" visible="true" /> <field name="PURPOSE" alias="PURPOSE" visible="true" /> </fields> <showattachments>false</showattachments> <showrelatedrecords>false</showrelatedrecords> </configuration>
<configuration> <fields> <field name="TPOD_TAG" alias="TPOD_TAG" visible="true" /> <field name="STRM_NAME" alias="STRM_NAME" visible="true" /> <field name="STATUS" alias="STATUS" visible="true" /> <field name="LICENCE_NO" alias="LICENCE_NO" visible="true" /> <field name="PRIORITY_DATE" alias="PRIORITY_DATE" visible="true"> <format precision="0" usethousandsseparator="false" /> </field> <field name="LIC_STATUS" alias="LIC_STATUS" visible="true" /> <field name="PURPOSE" alias="PURPOSE" visible="true" /> </fields> <showattachments>false</showattachments> <showrelatedrecords>false</showrelatedrecords> </configuration>
Unfortunately the GUI doesn't have any options for output format in the same way that ArcExplorer Online does. Or at least it's not easily found by me yet. I've found the "popup" folder and made the changes as you've shown but I don't see any change in my flex app. it still shows the commas between the 000,000,000. The PRIORITY_DATE in the original dataset was set as a Number (Long) field. Unfortunately our service is internal only which is strange because the data is actually public, but because this is a pilot project, they've made all the services internal only. The original dataset can be downloaded here: http://goo.gl/2XM5E
I don't use the GUI, but I figure it would be in the configure section for popups and the key/value pair tab. http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Configuring_pop_ups_in_Application_Builder/01m30000004p000000/The format statement I gave you is for a number field. Is your PRIORITY_DATE field a date field or just a number (or, is your service public to test?)?The fields section on this link http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Pop_up_configuration_files/01m30000002q000000/ shows the avialable format options.R_Ultimately, the change needs to be in the popup folder in your flexviewer folder on the server (which I suspect AppBuilder does for you). So, for windows using IIS, would be something like \inetpub\wwwroot\FlexViewer_Map\popups\Popup_layer.xml
<?xml version="1.0" ?> <configuration> <fields> <field name="TPOD_TAG" alias="TPOD_TAG" visible="true"/> <field name="STRM_NAME" alias="STRM_NAME" visible="true"/> <field name="STATUS" alias="STATUS" visible="true"/> <field name="LICENCE_NO" alias="LICENCE_NO" visible="true"/> <field name="PRIORITY_DATE" alias="PRIORITY_DATE" visible="true"/> <format precision="0" usethousandsseparator="false"/> <field name="LIC_STATUS" alias="LIC_STATUS" visible="true"/> <field name="PURPOSE" alias="PURPOSE" visible="true"/> </fields> <showattachments>false</showattachments> <showrelatedrecords>false</showrelatedrecords> </configuration>
Sorry, I've only used the GUI.Where do I find this configuration file to add these tags? Is it accessible via the GUI? Or do I have to find it on the server here the flex viewer resides?
Sure, just use the usethousandsseparator in your field tag.Here is an example for my Shape_Area field that displays without any of the commas. <field name="Shape_Area" alias="Area of Feature" visible="true"> <format precision="0" usethousandsseparator="false"/>More here: http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Pop_up_configuration_files/01m30000002q000000/R_
<field name="Shape_Area" alias="Area of Feature" visible="true"> <format precision="0" usethousandsseparator="false"/>
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.