<?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: call ComboBox method from MapTool in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-combobox-method-from-maptool/m-p/854858#M4454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;P&gt;Take a look at:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/209438-combo-box-reload"&gt;https://community.esri.com/thread/209438-combo-box-reload&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2020 05:25:01 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2020-08-21T05:25:01Z</dc:date>
    <item>
      <title>call ComboBox method from MapTool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-combobox-method-from-maptool/m-p/854857#M4453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the SDK's &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;Examples\MapExploration\GetMapCoordinates.cs&lt;/SPAN&gt;, the map coordinates become available in &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;HandleMouseDownAsync(...)&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Afterwards, still in&amp;nbsp;&lt;SPAN&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;HandleMouseDownAsync(...)&lt;/SPAN&gt;,&lt;/SPAN&gt; I&amp;nbsp;need to invoke a method defined in a ComboBox, something like:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;public void SearchXY (double x, double y) 
{ this.queryRows = this.database.Query(x, y); UpdateCombo(); }&lt;/PRE&gt;&lt;P&gt;How can I obtain a reference to &lt;STRONG&gt;this&lt;/STRONG&gt; ComboBox?&lt;/P&gt;&lt;P&gt;Or is an event needed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 17:00:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-combobox-method-from-maptool/m-p/854857#M4453</guid>
      <dc:creator>JackKelley1</dc:creator>
      <dc:date>2021-12-12T17:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: call ComboBox method from MapTool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-combobox-method-from-maptool/m-p/854858#M4454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;P&gt;Take a look at:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/209438-combo-box-reload"&gt;https://community.esri.com/thread/209438-combo-box-reload&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2020 05:25:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-combobox-method-from-maptool/m-p/854858#M4454</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2020-08-21T05:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: call ComboBox method from MapTool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-combobox-method-from-maptool/m-p/854859#M4455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gintautus, That code looks promising. Will the DAML need to be changed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish that&amp;nbsp;the SDK did the work for me. The add-in's &lt;STRONG&gt;default&lt;/STRONG&gt; Module singleton would provide access by some "FindItem" method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2020 05:56:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-combobox-method-from-maptool/m-p/854859#M4455</guid>
      <dc:creator>JackKelley1</dc:creator>
      <dc:date>2020-08-21T05:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: call ComboBox method from MapTool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-combobox-method-from-maptool/m-p/854860#M4456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;P&gt;It is possible to get your combobox in ArcGIS Pro way, but there is no samples with combobox.&lt;/P&gt;&lt;P&gt;var comboBox = FrameworkApplication.GetPlugInWrapper("your_combox_id");&lt;/P&gt;&lt;P&gt;I have checked it returns wrapper with CommandType value ComboBox, but I don't what to do next. For example, cast to&amp;nbsp;your combobox class or something like that. You can investigate that way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2020 06:29:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-combobox-method-from-maptool/m-p/854860#M4456</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2020-08-21T06:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: call ComboBox method from MapTool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-combobox-method-from-maptool/m-p/854861#M4457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Gintautas, that code in&amp;nbsp;&lt;A href="https://community.esri.com/thread/209438"&gt;Combo Box Reload&lt;/A&gt;&amp;nbsp;showed the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The add-in has classes &lt;SPAN&gt;Module1&lt;/SPAN&gt;, &lt;SPAN&gt;MapTool1&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN&gt;ComboBox1&lt;/SPAN&gt;, plus my own &lt;SPAN&gt;Database.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The required call from &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;MapTool1&lt;/SPAN&gt; works fine and is simply&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;Module1.Current.ComboBox1.SearchXY(x, y);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Visual Studio made some suggestions to simplify the code (and the &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;Config.daml&lt;/SPAN&gt;&amp;nbsp;needed no&amp;nbsp;change).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In brief, the additions / modifications were:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Module1&lt;/STRONG&gt;:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;public ComboBox1 ComboBox1 { get; set; } = null;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;ComboBox1&lt;/STRONG&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt; public ComboBox1()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;&amp;nbsp; &amp;nbsp; if (Module1.Current == null) return;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;&amp;nbsp; &amp;nbsp; Module1.Current.ComboBox1 = this;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;&amp;nbsp; &amp;nbsp; this.database = new Database();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;&amp;nbsp; &amp;nbsp; //UpdateCombo();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt; }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Aug 2020 07:26:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-combobox-method-from-maptool/m-p/854861#M4457</guid>
      <dc:creator>JackKelley1</dc:creator>
      <dc:date>2020-08-22T07:26:48Z</dc:date>
    </item>
  </channel>
</rss>

