<?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 How to activate &amp;quot;coordinates&amp;quot; widget's internal function &amp;quot;onLocateClick&amp;quot; from &amp;quot;image&amp;quot; widget in Experience Builder Custom Widgets</title>
    <link>https://community.esri.com/t5/experience-builder-custom-widgets/how-to-activate-quot-coordinates-quot-widget-s/m-p/1397747#M257</link>
    <description>&lt;P&gt;I use 2 custom widgets,&lt;BR /&gt;one is a copy of esri's original coordinates widget&lt;BR /&gt;and the other is a copy of esri's original image widget.&lt;BR /&gt;I can modify my copies as I wish.&lt;/P&gt;&lt;P&gt;The original image widget has a built -in option to sense when the user clicks it,&lt;BR /&gt;and I need that when the user clicks it,&lt;BR /&gt;it will activate the "onLocateClick" in my custom coordinates widget.&lt;/P&gt;&lt;P&gt;This is my first trial to make communication between 2 widgets in EXB&lt;/P&gt;&lt;P&gt;I see that both widgets - coordinates and image, do noyt have the Trigger/Message actions in the development system... and I do not understand why... and I do not know how to enable them to use this widgets communication way.&lt;/P&gt;&lt;P&gt;So, What I tried to do is:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;I declared public object "_myApp" in client/dist/experience/index.html&lt;BR /&gt;&amp;nbsp; &amp;nbsp;and in my custom coordinates widget.tsx code,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;I aded a line "_myApp.coordinates = Widget"&lt;BR /&gt;&amp;nbsp; &amp;nbsp;before its export line at the end of the file.&lt;/P&gt;&lt;P&gt;What I gained is that my custom image widget have access to _myApp.coordinates&lt;BR /&gt;but from this point I am stuck, since I have no access to the coordinates internal "onLocateClick" function.&lt;/P&gt;&lt;P&gt;I am new to React, so help&amp;nbsp;will be greatly appreciated&lt;/P&gt;</description>
    <pubDate>Tue, 19 Mar 2024 11:26:11 GMT</pubDate>
    <dc:creator>MichaelLev</dc:creator>
    <dc:date>2024-03-19T11:26:11Z</dc:date>
    <item>
      <title>How to activate "coordinates" widget's internal function "onLocateClick" from "image" widget</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/how-to-activate-quot-coordinates-quot-widget-s/m-p/1397747#M257</link>
      <description>&lt;P&gt;I use 2 custom widgets,&lt;BR /&gt;one is a copy of esri's original coordinates widget&lt;BR /&gt;and the other is a copy of esri's original image widget.&lt;BR /&gt;I can modify my copies as I wish.&lt;/P&gt;&lt;P&gt;The original image widget has a built -in option to sense when the user clicks it,&lt;BR /&gt;and I need that when the user clicks it,&lt;BR /&gt;it will activate the "onLocateClick" in my custom coordinates widget.&lt;/P&gt;&lt;P&gt;This is my first trial to make communication between 2 widgets in EXB&lt;/P&gt;&lt;P&gt;I see that both widgets - coordinates and image, do noyt have the Trigger/Message actions in the development system... and I do not understand why... and I do not know how to enable them to use this widgets communication way.&lt;/P&gt;&lt;P&gt;So, What I tried to do is:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;I declared public object "_myApp" in client/dist/experience/index.html&lt;BR /&gt;&amp;nbsp; &amp;nbsp;and in my custom coordinates widget.tsx code,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;I aded a line "_myApp.coordinates = Widget"&lt;BR /&gt;&amp;nbsp; &amp;nbsp;before its export line at the end of the file.&lt;/P&gt;&lt;P&gt;What I gained is that my custom image widget have access to _myApp.coordinates&lt;BR /&gt;but from this point I am stuck, since I have no access to the coordinates internal "onLocateClick" function.&lt;/P&gt;&lt;P&gt;I am new to React, so help&amp;nbsp;will be greatly appreciated&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 11:26:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/how-to-activate-quot-coordinates-quot-widget-s/m-p/1397747#M257</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2024-03-19T11:26:11Z</dc:date>
    </item>
  </channel>
</rss>

