<?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 Custom Widget development for ArcGIS online  with dojo in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-development-for-arcgis-online-with/m-p/15927#M407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,I am beginner for dojo coding,and I am trying to develop widgets with dojo,and I want to have recursive function in one of my widgets that can be executed n times and return the values (0 to n-1) on each call of the function,so,is there anyone who has know how to solve this problem with dojo and share me? thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Dec 2016 13:31:19 GMT</pubDate>
    <dc:creator>Awet_Tekle</dc:creator>
    <dc:date>2016-12-21T13:31:19Z</dc:date>
    <item>
      <title>Custom Widget development for ArcGIS online  with dojo</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-development-for-arcgis-online-with/m-p/15927#M407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,I am beginner for dojo coding,and I am trying to develop widgets with dojo,and I want to have recursive function in one of my widgets that can be executed n times and return the values (0 to n-1) on each call of the function,so,is there anyone who has know how to solve this problem with dojo and share me? thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 13:31:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-development-for-arcgis-online-with/m-p/15927#M407</guid>
      <dc:creator>Awet_Tekle</dc:creator>
      <dc:date>2016-12-21T13:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Widget development for ArcGIS online  with dojo</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-development-for-arcgis-online-with/m-p/15928#M408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;First just to be sure you know. AGOL version of WAB does not allow for adding or using custom widget. WAB Dev edition is the only one that will allow you to add custom widgets and themes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now as far as your question. A&amp;nbsp;function that returns a value is simple and most all functions can be called recursively. So a WAB widget function would look like this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;myFunction&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inputVal&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; newVal&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; newVal &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; inputVal &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; newVal&lt;SPAN class="punctuation 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;/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;you can look at otb widgets in the widgets folder for best practice coding and ideas. Widget development is not exactly like standard JS coding and be sure to &lt;A href="http://blogs.esri.com/esri/arcgis/2013/10/14/the-abcs-of-amd/" rel="nofollow noopener noreferrer" target="_blank"&gt;understand AMD coding style&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;There are widget development walkthroughs on the WEB Dev site:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/web-appbuilder/sample-code/create-custom-in-panel-widget.htm" title="https://developers.arcgis.com/web-appbuilder/sample-code/create-custom-in-panel-widget.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Create a custom in-panel widget—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And dojo templated widget coding&amp;nbsp;&lt;A class="link-titled" href="http://dojotoolkit.org/documentation/tutorials/1.6/templated/" title="http://dojotoolkit.org/documentation/tutorials/1.6/templated/" rel="nofollow noopener noreferrer" target="_blank"&gt;Creating Template-based Widgets - Archived Tutorial - Dojo Toolkit&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:38:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-development-for-arcgis-online-with/m-p/15928#M408</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-10T20:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Widget development for ArcGIS online  with dojo</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-development-for-arcgis-online-with/m-p/15929#M409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;Thank you very much for your fundamental directions toward the point,but,let me clear with my question: my intention is to have function with for loop or any loop statement and that loop has counter,then the function must return every value of the counter,which means,as soon as the value of counter is updated the function must be called.&lt;/P&gt;&lt;P&gt;Awet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 05:12:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-development-for-arcgis-online-with/m-p/15929#M409</guid>
      <dc:creator>Awet_Tekle</dc:creator>
      <dc:date>2016-12-22T05:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Widget development for ArcGIS online  with dojo</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-development-for-arcgis-online-with/m-p/15930#M410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;It looks like you figured this question out based on your other post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 14:35:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-development-for-arcgis-online-with/m-p/15930#M410</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-22T14:35:35Z</dc:date>
    </item>
  </channel>
</rss>

