<?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 It is possible to modify the parameters passed to the solve call within the Directions widget? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/it-is-possible-to-modify-the-parameters-passed-to/m-p/1132545#M21778</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to add the possibility to users to get directions for searching with local grid system. Basically, when user types in a grid following a standard, the widget recognizes it, determines the cendroid of it and sets the X,Y coordinates for the origin and the destination.&lt;/P&gt;&lt;P&gt;To do so, Ive been modifiyng the code in the Directions widget.&lt;/P&gt;&lt;P&gt;I'm able to get user values from the DOM using&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;esri_dijit_Search_1_input&lt;/STRONG&gt;&lt;/EM&gt; and&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;esri_dijit_Search_2_input,&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;query a service, make some calculations and get the X, Y coordinates of the origin and the destination. I've added this code in the &lt;EM&gt;&lt;STRONG&gt;_onDirectionsStart&lt;/STRONG&gt;&lt;/EM&gt; function.&lt;/P&gt;&lt;P&gt;Now the challenge is to pass these coordinates to the solve call. It look likes the solve call is not exposed in the Direction class documentations:&amp;nbsp;g&lt;A href="https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2F3%2Fjsapi%2Fdirections-amd.html%23getdirections&amp;amp;data=04%7C01%7Cphilippe.dion%40gov.ab.ca%7Ce96c3a8d769a4dbec5e508d9c6425fac%7C2bb51c06af9b42c58bf53c3b7b10850b%7C0%7C0%7C637758810654967518%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=Y%2FsaXUJvNlWXF0FYCWmE6SW6fFTgXrbTz8EUOYQ8no0%3D&amp;amp;reserved=0" target="_blank"&gt;etDirections() call to the directionsDijit&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I know I can define parameters using the&amp;nbsp;&lt;A href="https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2F3%2Fjsapi%2Frouteparameters-amd.html&amp;amp;data=04%7C01%7Cphilippe.dion%40gov.ab.ca%7Ce96c3a8d769a4dbec5e508d9c6425fac%7C2bb51c06af9b42c58bf53c3b7b10850b%7C0%7C0%7C637758810654967518%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=Z7y6XJrHGfdgr4uNY%2FGdAOTgDBDGDtUgZdvu6FVgd54%3D&amp;amp;reserved=0" target="_blank"&gt;routeParameters task&lt;/A&gt;&amp;nbsp;which the Directions dijit references but this routeParameters doesn't have any methods which would make this call itself.&lt;BR /&gt;&lt;BR /&gt;It should be in the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;this._dijitDirections&lt;/STRONG&gt;&lt;/EM&gt; object but I can't find the exact method to use and this seems to be undocumented&lt;BR /&gt;&lt;BR /&gt;Hope someone else in the community has ever tried to achieve that.&lt;/P&gt;&lt;P&gt;web appbuilder version: 2.16&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jan 2022 18:29:56 GMT</pubDate>
    <dc:creator>philll</dc:creator>
    <dc:date>2022-01-11T18:29:56Z</dc:date>
    <item>
      <title>It is possible to modify the parameters passed to the solve call within the Directions widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/it-is-possible-to-modify-the-parameters-passed-to/m-p/1132545#M21778</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to add the possibility to users to get directions for searching with local grid system. Basically, when user types in a grid following a standard, the widget recognizes it, determines the cendroid of it and sets the X,Y coordinates for the origin and the destination.&lt;/P&gt;&lt;P&gt;To do so, Ive been modifiyng the code in the Directions widget.&lt;/P&gt;&lt;P&gt;I'm able to get user values from the DOM using&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;esri_dijit_Search_1_input&lt;/STRONG&gt;&lt;/EM&gt; and&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;esri_dijit_Search_2_input,&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;query a service, make some calculations and get the X, Y coordinates of the origin and the destination. I've added this code in the &lt;EM&gt;&lt;STRONG&gt;_onDirectionsStart&lt;/STRONG&gt;&lt;/EM&gt; function.&lt;/P&gt;&lt;P&gt;Now the challenge is to pass these coordinates to the solve call. It look likes the solve call is not exposed in the Direction class documentations:&amp;nbsp;g&lt;A href="https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2F3%2Fjsapi%2Fdirections-amd.html%23getdirections&amp;amp;data=04%7C01%7Cphilippe.dion%40gov.ab.ca%7Ce96c3a8d769a4dbec5e508d9c6425fac%7C2bb51c06af9b42c58bf53c3b7b10850b%7C0%7C0%7C637758810654967518%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=Y%2FsaXUJvNlWXF0FYCWmE6SW6fFTgXrbTz8EUOYQ8no0%3D&amp;amp;reserved=0" target="_blank"&gt;etDirections() call to the directionsDijit&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I know I can define parameters using the&amp;nbsp;&lt;A href="https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2F3%2Fjsapi%2Frouteparameters-amd.html&amp;amp;data=04%7C01%7Cphilippe.dion%40gov.ab.ca%7Ce96c3a8d769a4dbec5e508d9c6425fac%7C2bb51c06af9b42c58bf53c3b7b10850b%7C0%7C0%7C637758810654967518%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=Z7y6XJrHGfdgr4uNY%2FGdAOTgDBDGDtUgZdvu6FVgd54%3D&amp;amp;reserved=0" target="_blank"&gt;routeParameters task&lt;/A&gt;&amp;nbsp;which the Directions dijit references but this routeParameters doesn't have any methods which would make this call itself.&lt;BR /&gt;&lt;BR /&gt;It should be in the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;this._dijitDirections&lt;/STRONG&gt;&lt;/EM&gt; object but I can't find the exact method to use and this seems to be undocumented&lt;BR /&gt;&lt;BR /&gt;Hope someone else in the community has ever tried to achieve that.&lt;/P&gt;&lt;P&gt;web appbuilder version: 2.16&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 18:29:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/it-is-possible-to-modify-the-parameters-passed-to/m-p/1132545#M21778</guid>
      <dc:creator>philll</dc:creator>
      <dc:date>2022-01-11T18:29:56Z</dc:date>
    </item>
  </channel>
</rss>

