<?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 Show New SDE Connection Parameters After Running Add-In in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/show-new-sde-connection-parameters-after-running/m-p/484300#M13084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To All ArcGIS Developers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am creating an Add-In in VB.NET that will update the SDE connection parameters as the Oracle Client on individual GIS workstations is being upgraded from 10g to 11g.&amp;nbsp; When I run the script and check the connection parameters for the SDE layers it still shows sde:oracle10g even if I save the file.&amp;nbsp; I need to close the file and re-open the file to see the updated SDE connection parameters to sde:oracle11g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how I can see that these SDE connection parameters have been updated without having to close and re-open the mxd that I was working on?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help or hints are greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jun 2013 13:23:24 GMT</pubDate>
    <dc:creator>MichaelVolz</dc:creator>
    <dc:date>2013-06-04T13:23:24Z</dc:date>
    <item>
      <title>Show New SDE Connection Parameters After Running Add-In</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/show-new-sde-connection-parameters-after-running/m-p/484300#M13084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To All ArcGIS Developers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am creating an Add-In in VB.NET that will update the SDE connection parameters as the Oracle Client on individual GIS workstations is being upgraded from 10g to 11g.&amp;nbsp; When I run the script and check the connection parameters for the SDE layers it still shows sde:oracle10g even if I save the file.&amp;nbsp; I need to close the file and re-open the file to see the updated SDE connection parameters to sde:oracle11g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how I can see that these SDE connection parameters have been updated without having to close and re-open the mxd that I was working on?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help or hints are greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 13:23:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/show-new-sde-connection-parameters-after-running/m-p/484300#M13084</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-06-04T13:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Show New SDE Connection Parameters After Running Add-In</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/show-new-sde-connection-parameters-after-running/m-p/484301#M13085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have added code to update the datasource of standalone tables that are sourced from an SDE database.&amp;nbsp; The coding is very similar to SDE feature classes, especially when setting the connection properties.&amp;nbsp; The behavior is odd because I can see that the connection properties of the standalone table have been updated immediately after running the Add-In, but the feature class connection properties do not appear to be updated immediately.&amp;nbsp; I need to save the mxd and then close and re-open the mxd in order to see the updated connection properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know why this is occurring?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to get the connection properties of SDE feature classes in mxds to show changes immediately after the Add-In has finished running?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help or hints are greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 12:03:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/show-new-sde-connection-parameters-after-running/m-p/484301#M13085</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-06-12T12:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Show New SDE Connection Parameters After Running Add-In</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/show-new-sde-connection-parameters-after-running/m-p/484302#M13086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tried implementing the following code after changing my SDE datasources, but the connections are still not changing unless I close out of ArcMap:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;' Get the focus map&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim map As ESRI.ArcGIS.Carto.IMap = mxDocument.FocusMap&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ' Cast from IMap to IActiveView&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim activeView As ESRI.ArcGIS.Carto.IActiveView = CType(map, ESRI.ArcGIS.Carto.IActiveView)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;' Redraw the map&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; activeView.Refresh()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ' Update and Refresh TOC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim contentsView As ESRI.ArcGIS.ArcMapUI.IContentsView = mxDocument.CurrentContentsView&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; contentsView.Refresh(Nothing)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know what else I need to implement to get the SDE datasource in the TOC to update while I am still in the current ArcMap session?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 12:30:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/show-new-sde-connection-parameters-after-running/m-p/484302#M13086</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-07-01T12:30:20Z</dc:date>
    </item>
  </channel>
</rss>

