<?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: Get access to listbox on dockpane in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-access-to-listbox-on-dockpane/m-p/1017945#M6021</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case, users select either 1 item or all items.&amp;nbsp; You can check out the this link for suggestion on how to do multiple selection.&amp;nbsp; Sorry I couldn't be more helpful.&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/13130788/selecting-multiple-listbox-items-through-code" target="_blank"&gt;c# - Selecting multiple Listbox items through code - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2021 14:58:16 GMT</pubDate>
    <dc:creator>helenchu</dc:creator>
    <dc:date>2021-01-19T14:58:16Z</dc:date>
    <item>
      <title>Get access to listbox on dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-access-to-listbox-on-dockpane/m-p/835515#M3540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm from ArcMap world and totally confused between MVVM annd WPF and RelayCommand so please help me out.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my&amp;nbsp;Dockpane1ViewModel.cs I tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;private void DoSearch ()&lt;BR /&gt;{&lt;BR /&gt; string strLayerName = "abc";&lt;BR /&gt; string &lt;SPAN&gt;queryString&lt;/SPAN&gt;= "";&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt;foreach (var item in &lt;STRONG&gt;lslSubjAcct.Items&lt;/STRONG&gt;)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt; {&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt;queryString+= item.ToString() + ", ";&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SelectByAttributeAsync(&lt;SPAN&gt;strLayerName&amp;nbsp;&lt;/SPAN&gt;, queryString);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error&lt;/STRONG&gt;:&amp;nbsp;lslSubjAcct does not exist in current context.&amp;nbsp; How do I fix it?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2020 22:29:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-access-to-listbox-on-dockpane/m-p/835515#M3540</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2020-05-18T22:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get access to listbox on dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-access-to-listbox-on-dockpane/m-p/835516#M3541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm confused by what you're trying do it.&amp;nbsp; I get the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; You have a created a DockPane&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; On the DockPane you want to "DoSearch" presumably from a button on your dockpane.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; I don't know what lslSubjAcct is... Maybe a list box with items to be used in "where clause" for a query?&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; SelectByAttributeAsync is maybe a custom method you have?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you need to provide a little more explanation of what you're trying to accomplish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2020 01:42:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-access-to-listbox-on-dockpane/m-p/835516#M3541</guid>
      <dc:creator>DHuantes</dc:creator>
      <dc:date>2020-05-19T01:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get access to listbox on dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-access-to-listbox-on-dockpane/m-p/835517#M3542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;Sorry for not explaining clearly and thanks for your response.&lt;/P&gt;&lt;P&gt;1/ Yes I created a dockpane&lt;/P&gt;&lt;P&gt;2/ A button on my dockpane to do search and zoom to selection on active map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3/&amp;nbsp;&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;lslSubjAcct&lt;SPAN&gt;&amp;nbsp;is the name of a listbox that stores single or multiple account numbers to search&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;4/ SelectByAttributeAsync is&amp;nbsp; a custom method&amp;nbsp;that DoSearch call.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;I hard coded my where clause for the query and it works fine.&amp;nbsp; What I'm trying to accomplish is to get all accounts on my listbox&amp;nbsp;lslSubjAcct.&amp;nbsp; The queryString (for the codes above) should be '1234','5678',9101'.&amp;nbsp; Then I'll add FieldNameString,&amp;nbsp;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;parentheses later.&amp;nbsp; Final queryString should be Fieldname in ('1234', '5678')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #222222; font-size: 14px; "&gt;In ArcObject everything is in 1 place, much more simple for me to understand.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #222222; font-size: 14px; "&gt;Thank you so much.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2020 11:39:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-access-to-listbox-on-dockpane/m-p/835517#M3542</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2020-05-19T11:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get access to listbox on dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-access-to-listbox-on-dockpane/m-p/1017572#M6012</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/25943"&gt;@helenchu&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Do you know if there is a way to create a ListBox and allow the user to select multiple items, (holding CTRL or SHIFT key) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 04:05:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-access-to-listbox-on-dockpane/m-p/1017572#M6012</guid>
      <dc:creator>FredericPoliart_EsriAU</dc:creator>
      <dc:date>2021-01-18T04:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get access to listbox on dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-access-to-listbox-on-dockpane/m-p/1017945#M6021</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case, users select either 1 item or all items.&amp;nbsp; You can check out the this link for suggestion on how to do multiple selection.&amp;nbsp; Sorry I couldn't be more helpful.&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/13130788/selecting-multiple-listbox-items-through-code" target="_blank"&gt;c# - Selecting multiple Listbox items through code - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 14:58:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-access-to-listbox-on-dockpane/m-p/1017945#M6021</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2021-01-19T14:58:16Z</dc:date>
    </item>
  </channel>
</rss>

