<?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 Plan Route Analysis Widget - Address instead of Name? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/plan-route-analysis-widget-address-instead-of-name/m-p/1041526#M20527</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am wondering if there is a way to configure the ArcGIS Web AppBuilder for Portal (10.8.1), Analysis Widget, Plan Routes, to show the stop's "Address" instead of the stop's "Name". At the moment, it is defaulting to an existing field called "Name", which is not relevant when looking at the route (it's the customer's name, not their address). The user would like to be able to see the "Address" instead.&lt;/P&gt;&lt;P&gt;It appears that this variable would be set behind the scenes in the widget using this:&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/tools/network-analyst-toolbox/make-route-layer.htm" target="_blank"&gt;https://desktop.arcgis.com/en/arcmap/10.8/tools/network-analyst-toolbox/make-route-layer.htm&lt;/A&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;#Load the geocoded address locations as stops mapping the address field from&lt;BR /&gt;#geocoded stop features as Name property using field mappings.&lt;BR /&gt;fieldMappings = arcpy.na.NAClassFieldMappings(outNALayer, stopsLayerName)&lt;BR /&gt;fieldMappings["Name"].mappedFieldName = "Address"&lt;BR /&gt;arcpy.na.AddLocations(outNALayer, stopsLayerName, outStops, fieldMappings,&lt;BR /&gt;"", exclude_restricted_elements = "EXCLUDE")&lt;/P&gt;&lt;P&gt;But in the out of the box widget, there doesn't appear to be an option to set the field mapping. Is this the case or am I missing something?&lt;/P&gt;&lt;P&gt;Short of setting the database field names (i.e. renaming the Address field to Name...), I am not seeing a workaround. Does anyone have any suggestions? Is setting the field mapping only available if we develop/customize our own analysis widget?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;JP&lt;/P&gt;</description>
    <pubDate>Mon, 29 Mar 2021 14:29:46 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-03-29T14:29:46Z</dc:date>
    <item>
      <title>Plan Route Analysis Widget - Address instead of Name?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/plan-route-analysis-widget-address-instead-of-name/m-p/1041526#M20527</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am wondering if there is a way to configure the ArcGIS Web AppBuilder for Portal (10.8.1), Analysis Widget, Plan Routes, to show the stop's "Address" instead of the stop's "Name". At the moment, it is defaulting to an existing field called "Name", which is not relevant when looking at the route (it's the customer's name, not their address). The user would like to be able to see the "Address" instead.&lt;/P&gt;&lt;P&gt;It appears that this variable would be set behind the scenes in the widget using this:&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/tools/network-analyst-toolbox/make-route-layer.htm" target="_blank"&gt;https://desktop.arcgis.com/en/arcmap/10.8/tools/network-analyst-toolbox/make-route-layer.htm&lt;/A&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;#Load the geocoded address locations as stops mapping the address field from&lt;BR /&gt;#geocoded stop features as Name property using field mappings.&lt;BR /&gt;fieldMappings = arcpy.na.NAClassFieldMappings(outNALayer, stopsLayerName)&lt;BR /&gt;fieldMappings["Name"].mappedFieldName = "Address"&lt;BR /&gt;arcpy.na.AddLocations(outNALayer, stopsLayerName, outStops, fieldMappings,&lt;BR /&gt;"", exclude_restricted_elements = "EXCLUDE")&lt;/P&gt;&lt;P&gt;But in the out of the box widget, there doesn't appear to be an option to set the field mapping. Is this the case or am I missing something?&lt;/P&gt;&lt;P&gt;Short of setting the database field names (i.e. renaming the Address field to Name...), I am not seeing a workaround. Does anyone have any suggestions? Is setting the field mapping only available if we develop/customize our own analysis widget?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;JP&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 14:29:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/plan-route-analysis-widget-address-instead-of-name/m-p/1041526#M20527</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-03-29T14:29:46Z</dc:date>
    </item>
  </channel>
</rss>

