<?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: Example of how to communicate between widgets? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/example-of-how-to-communicate-between-widgets/m-p/813527#M6710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh sorry Robert, my question was for Larry and the Dojo clue ! I'm actually trying your answer on the other thread and it seem to be really &lt;SPAN lang="en"&gt;interesting &lt;/SPAN&gt;too but my goal is to have several tools to use ! &lt;/P&gt;&lt;P&gt;Excuse me again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jul 2015 13:22:27 GMT</pubDate>
    <dc:creator>FlorianCADOZ</dc:creator>
    <dc:date>2015-07-08T13:22:27Z</dc:date>
    <item>
      <title>Example of how to communicate between widgets?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/example-of-how-to-communicate-between-widgets/m-p/813522#M6705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The help page at &lt;A href="http://doc.arcgis.com/en/web-appbuilder/extend-apps/communication-between-widgets.htm" title="http://doc.arcgis.com/en/web-appbuilder/extend-apps/communication-between-widgets.htm"&gt;Communication between widgets—Web AppBuilder for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp; is pretty sparse:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 0.875em; margin-bottom: 1.71429em; color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; padding-left: 30px; background-color: #fefefe;"&gt;&lt;EM&gt;As the requirement of reading or sending data between widgets is common, the BaseWidget class supports this programming model.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 0.875em; margin-bottom: 1.71429em; color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; padding-left: 30px; background-color: #fefefe;"&gt;&lt;EM&gt;In the constructor of the BaseWidget class, it subscribes the publishData, dataFetched, and noData events. Meanwhile, the BaseWidget class provides the publishData and fetchData methods.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 0.875em; margin-bottom: 1.71429em; color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; padding-left: 30px; background-color: #fefefe;"&gt;&lt;EM&gt;If you want the widget to publish data, call the publishData method. If you want the widget to receive data from another widget, call the fetchData method, and write code to override the onReceiveData and onNoData methods to read data.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 0.875em; margin-bottom: 1.71429em; color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; background-color: #fefefe;"&gt;Are there any examples showing how to pass information from one widget to another? Is there an example of how to use publishData and fetchData?&lt;/P&gt;&lt;P style="font-size: 0.875em; margin-bottom: 1.71429em; color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; background-color: #fefefe;"&gt;The post at &lt;A href="https://community.esri.com/thread/119987"&gt;Web Appbuilder Communication Between Widgets&lt;/A&gt;&amp;nbsp; hints at it, but doesn't show enough code for me to get it working.&lt;/P&gt;&lt;P style="font-size: 0.875em; margin-bottom: 1.71429em; color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; background-color: #fefefe;"&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 05:35:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/example-of-how-to-communicate-between-widgets/m-p/813522#M6705</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2015-01-22T05:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Example of how to communicate between widgets?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/example-of-how-to-communicate-between-widgets/m-p/813523#M6706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Last time I tried the publishData and fetchData functions, they didn't work.&amp;nbsp; You can use the Dojo topic.publish and topic.subscribe classes instead,&amp;nbsp; I've had no problem using them for inter-widget communications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 23:06:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/example-of-how-to-communicate-between-widgets/m-p/813523#M6706</guid>
      <dc:creator>LarryStout</dc:creator>
      <dc:date>2015-01-22T23:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Example of how to communicate between widgets?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/example-of-how-to-communicate-between-widgets/m-p/813524#M6707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; In the Web AppBuilder 1.1 version there is a an example of widget communication in the client\stemapp\widgets\samplewidgets\WidgetCommunication folder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 23:12:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/example-of-how-to-communicate-between-widgets/m-p/813524#M6707</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-03-19T23:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Example of how to communicate between widgets?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/example-of-how-to-communicate-between-widgets/m-p/813525#M6708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ! This way seems to be really interesting in my point of view ! Can you tell me more about this please ? (I'm a newbie with Dojo...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 13:11:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/example-of-how-to-communicate-between-widgets/m-p/813525#M6708</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2015-07-08T13:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Example of how to communicate between widgets?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/example-of-how-to-communicate-between-widgets/m-p/813526#M6709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Not sure what else to add. As I mentioned there in the stemapp/widget/samplewidgets/WidgetCommunicarion folder there is a WidgetA and WidgetB folder that comtains code examples of how to communicate between widget A and widget B. Or you can use my response to your other thread here: &lt;A href="https://community.esri.com/message/534206"&gt;Re: Sharing a variable between Widgets&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 13:17:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/example-of-how-to-communicate-between-widgets/m-p/813526#M6709</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-07-08T13:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Example of how to communicate between widgets?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/example-of-how-to-communicate-between-widgets/m-p/813527#M6710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh sorry Robert, my question was for Larry and the Dojo clue ! I'm actually trying your answer on the other thread and it seem to be really &lt;SPAN lang="en"&gt;interesting &lt;/SPAN&gt;too but my goal is to have several tools to use ! &lt;/P&gt;&lt;P&gt;Excuse me again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 13:22:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/example-of-how-to-communicate-between-widgets/m-p/813527#M6710</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2015-07-08T13:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Example of how to communicate between widgets?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/example-of-how-to-communicate-between-widgets/m-p/813528#M6711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; OK, I am sorry I did not notice you replied to Larrys post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case here is the dojo doc link about topic subscribe &amp;amp; publish:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://dojotoolkit.org/reference-guide/1.10/dojo/topic.html" title="http://dojotoolkit.org/reference-guide/1.10/dojo/topic.html"&gt;dojo/topic — The Dojo Toolkit - Reference Guide&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 13:26:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/example-of-how-to-communicate-between-widgets/m-p/813528#M6711</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-07-08T13:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Example of how to communicate between widgets?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/example-of-how-to-communicate-between-widgets/m-p/813529#M6712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you and no problem !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 13:29:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/example-of-how-to-communicate-between-widgets/m-p/813529#M6712</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2015-07-08T13:29:41Z</dc:date>
    </item>
  </channel>
</rss>

