<?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 Re: Getting rid of underscore in fieldvalues popup in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-rid-of-underscore-in-fieldvalues-popup/m-p/196203#M18165</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saroj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can handle this from the database level or service level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database Level: Update the alias field names in the feature class directly from ArcCatalog. For this you simply need to stop the map services for few minutes and open the feature class properties and update the alias field names available under the &lt;STRONG&gt;Field&lt;/STRONG&gt;&amp;nbsp;tab. You will have to re-add the layers in the map document and overwrite the existing map service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Service level:- Provide alias fields names to each layer in the map document and overwrite the map service. This can be achieved by going into each layer's layer properties and &lt;STRONG&gt;Field&lt;/STRONG&gt;&amp;nbsp;tab. However, this has few drawbacks though, like if the same layer has been added over multiple times, you will have to update the alias field names multiple times and if the field names change in the database it will not reflect in the map document unless the layer has been added freshly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/modifying-field-properties.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/modifying-field-properties.htm"&gt;Modifying field properties—ArcGIS Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Shan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jun 2017 06:45:36 GMT</pubDate>
    <dc:creator>shan_sarkar</dc:creator>
    <dc:date>2017-06-14T06:45:36Z</dc:date>
    <item>
      <title>Getting rid of underscore in fieldvalues popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-rid-of-underscore-in-fieldvalues-popup/m-p/196202#M18164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any quickest and easiest way to get rid of underscore in field values in popup? For example, field: value pair is&lt;/P&gt;&lt;P&gt;FeatureName : Hello_World. I want to make it Hello World.&lt;/P&gt;&lt;P&gt;I am using popup template and fieldInfos.&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.8pt;"&gt;{&lt;SPAN style="color: #9876aa;"&gt;fieldName&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;"Feature_Type"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;visible&lt;/SPAN&gt;: &lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;label&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;"Major Feature"&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 20:06:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-rid-of-underscore-in-fieldvalues-popup/m-p/196202#M18164</guid>
      <dc:creator>SarojThapa1</dc:creator>
      <dc:date>2017-06-13T20:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Getting rid of underscore in fieldvalues popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-rid-of-underscore-in-fieldvalues-popup/m-p/196203#M18165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saroj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can handle this from the database level or service level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database Level: Update the alias field names in the feature class directly from ArcCatalog. For this you simply need to stop the map services for few minutes and open the feature class properties and update the alias field names available under the &lt;STRONG&gt;Field&lt;/STRONG&gt;&amp;nbsp;tab. You will have to re-add the layers in the map document and overwrite the existing map service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Service level:- Provide alias fields names to each layer in the map document and overwrite the map service. This can be achieved by going into each layer's layer properties and &lt;STRONG&gt;Field&lt;/STRONG&gt;&amp;nbsp;tab. However, this has few drawbacks though, like if the same layer has been added over multiple times, you will have to update the alias field names multiple times and if the field names change in the database it will not reflect in the map document unless the layer has been added freshly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/modifying-field-properties.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/modifying-field-properties.htm"&gt;Modifying field properties—ArcGIS Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Shan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 06:45:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-rid-of-underscore-in-fieldvalues-popup/m-p/196203#M18165</guid>
      <dc:creator>shan_sarkar</dc:creator>
      <dc:date>2017-06-14T06:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting rid of underscore in fieldvalues popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-rid-of-underscore-in-fieldvalues-popup/m-p/196204#M18166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can also be accomplished on the client side code in java script by removing the "_" from the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; str1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Feature_Type"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; str2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; str1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;replace&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="regex token"&gt;/_/g&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;' '&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:48:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-rid-of-underscore-in-fieldvalues-popup/m-p/196204#M18166</guid>
      <dc:creator>MirHashmi</dc:creator>
      <dc:date>2021-12-11T09:48:12Z</dc:date>
    </item>
  </channel>
</rss>

