<?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 customize ContentChooser for direct connection. in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-customize-contentchooser-for-direct/m-p/209627#M5453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guyz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my application, currently ContentChooser is accepting only ArcSDE service connection requests. Is there a way to customize the dialog to add a layer using direct connection? I am using esri_mo23.jar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get layers from direct connection using the dialog mentioned in the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mubashar Ahmad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS here is the code snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(contentChooser == null)&lt;BR /&gt; {&lt;BR /&gt; contentChooser = new ContentChooser(LASTPATH);&lt;BR /&gt; ContentFilter fcFilter = new SimpleContentFilter.FeatureClasses();&lt;BR /&gt; contentChooser.addChoosableContentFilter(fcFilter);&lt;BR /&gt; ContentFilter iFilter = new SimpleContentFilter.Images();&lt;BR /&gt; contentChooser.addChoosableContentFilter(iFilter);&lt;BR /&gt; ContentFilter lFilter = new SimpleContentFilter.Layers();&lt;BR /&gt; contentChooser.addChoosableContentFilter(lFilter);&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt;contentChooser.showDialog(true);&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; _contents = contentChooser.getContents();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2017 08:47:48 GMT</pubDate>
    <dc:creator>MubasharAhmad1</dc:creator>
    <dc:date>2017-07-10T08:47:48Z</dc:date>
    <item>
      <title>How to customize ContentChooser for direct connection.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-customize-contentchooser-for-direct/m-p/209627#M5453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guyz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my application, currently ContentChooser is accepting only ArcSDE service connection requests. Is there a way to customize the dialog to add a layer using direct connection? I am using esri_mo23.jar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get layers from direct connection using the dialog mentioned in the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mubashar Ahmad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS here is the code snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(contentChooser == null)&lt;BR /&gt; {&lt;BR /&gt; contentChooser = new ContentChooser(LASTPATH);&lt;BR /&gt; ContentFilter fcFilter = new SimpleContentFilter.FeatureClasses();&lt;BR /&gt; contentChooser.addChoosableContentFilter(fcFilter);&lt;BR /&gt; ContentFilter iFilter = new SimpleContentFilter.Images();&lt;BR /&gt; contentChooser.addChoosableContentFilter(iFilter);&lt;BR /&gt; ContentFilter lFilter = new SimpleContentFilter.Layers();&lt;BR /&gt; contentChooser.addChoosableContentFilter(lFilter);&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt;contentChooser.showDialog(true);&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; _contents = contentChooser.getContents();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 08:47:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-customize-contentchooser-for-direct/m-p/209627#M5453</guid>
      <dc:creator>MubasharAhmad1</dc:creator>
      <dc:date>2017-07-10T08:47:48Z</dc:date>
    </item>
  </channel>
</rss>

