<?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 Closest Facility Arcgis online javascript not returning data in HTML5, CSS, JavaScript, and JavaScript Frameworks</title>
    <link>https://community.esri.com/t5/html5-css-javascript-and-javascript-frameworks/closest-facility-arcgis-online-javascript-not/m-p/839569#M38</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the Closest Facility (CF) function in ArcGIS API for Javascript. I need to be able to pass a shape coming from a feature service as an incident, and use a feature service with multiple points as the facilities.&lt;/P&gt;&lt;P&gt;Currently when I use the Closest Facility task, nothing happens. No calls are made at all if I look at the network activity.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;CFTask.solve(CFParams).then(function (solveResult) {
 array.forEach(solveResult.routes, function (route, index) {
 console.log(route);
 });
});&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I understand that i may be passing it incorrect data, but would expect an error message, rather than the nothing I get now.&lt;/P&gt;&lt;P&gt;2 questions:&lt;/P&gt;&lt;P&gt;- Does the above code snippet actually run the Closest Facility&lt;BR /&gt; function? &lt;BR /&gt; - How do add data from a feature service to a feature set correctly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 10:14:01 GMT</pubDate>
    <dc:creator>AdminLCC</dc:creator>
    <dc:date>2021-12-12T10:14:01Z</dc:date>
    <item>
      <title>Closest Facility Arcgis online javascript not returning data</title>
      <link>https://community.esri.com/t5/html5-css-javascript-and-javascript-frameworks/closest-facility-arcgis-online-javascript-not/m-p/839569#M38</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the Closest Facility (CF) function in ArcGIS API for Javascript. I need to be able to pass a shape coming from a feature service as an incident, and use a feature service with multiple points as the facilities.&lt;/P&gt;&lt;P&gt;Currently when I use the Closest Facility task, nothing happens. No calls are made at all if I look at the network activity.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;CFTask.solve(CFParams).then(function (solveResult) {
 array.forEach(solveResult.routes, function (route, index) {
 console.log(route);
 });
});&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I understand that i may be passing it incorrect data, but would expect an error message, rather than the nothing I get now.&lt;/P&gt;&lt;P&gt;2 questions:&lt;/P&gt;&lt;P&gt;- Does the above code snippet actually run the Closest Facility&lt;BR /&gt; function? &lt;BR /&gt; - How do add data from a feature service to a feature set correctly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:14:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/html5-css-javascript-and-javascript-frameworks/closest-facility-arcgis-online-javascript-not/m-p/839569#M38</guid>
      <dc:creator>AdminLCC</dc:creator>
      <dc:date>2021-12-12T10:14:01Z</dc:date>
    </item>
  </channel>
</rss>

