<?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: ChangeVersion doesn't reflect in TOC on the non active map in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/changeversion-doesn-t-reflect-in-toc-on-the-non/m-p/1620812#M12960</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/152508"&gt;@PärÅman&lt;/a&gt;, could&lt;SPAN&gt;&amp;nbsp;you please try calling &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic31878.html" target="_self"&gt;RefreshDatastore&lt;/A&gt; in the new version after the Map version change?&amp;nbsp;I think that will address the issue.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 14:41:54 GMT</pubDate>
    <dc:creator>Aashis</dc:creator>
    <dc:date>2025-06-04T14:41:54Z</dc:date>
    <item>
      <title>ChangeVersion doesn't reflect in TOC on the non active map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/changeversion-doesn-t-reflect-in-toc-on-the-non/m-p/1620372#M12957</link>
      <description>&lt;P&gt;Using ArcGIS Pro 3.5x. Consuming ParcelFabric as a feature service.&lt;/P&gt;&lt;H3&gt;TOC shows wrong version:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;Open project with 2 maps in 2 separate panes, Map1 (the active one) and Map2.&lt;/LI&gt;&lt;LI&gt;Change version (see code below), new version named&amp;nbsp;&lt;EM&gt;yadaversion&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;List By Data Source in the Contents pane.&lt;/LI&gt;&lt;LI&gt;Map1: sde.yadaversion&amp;nbsp; Map2: sde.DEFAULT&lt;/LI&gt;&lt;LI&gt;Save project and reopen.&lt;/LI&gt;&lt;LI&gt;Map1: sde.yadaversion&amp;nbsp; Map2: sde.yadaversion&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="csharp"&gt;var maps = Project.Current.GetItems&amp;lt;MapProjectItem&amp;gt;().Select(mpi =&amp;gt; mpi.GetMap());
foreach (var map in maps)
{
    map.ChangeVersion(currentVersion, newVersion);
}&lt;/LI-CODE&gt;&lt;H3&gt;TOC shows correct version:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;Open project with 2 maps in 2 separate panes, Map1 (the active one) and Map2.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Click on Map2 to make it active (initializing/loading?)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Change version (see code above), new version named&amp;nbsp;&lt;EM&gt;yadaversion&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;List By Data Source in the Contents pane.&lt;/LI&gt;&lt;LI&gt;Map1: sde.yadaversion&amp;nbsp; Map2: sde.yadaversion&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;SUCCESS!&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;Conclusion&lt;/H3&gt;&lt;P&gt;It seem to me that I have to make sure to "open/activate" Map2 for it to get initialized.&lt;/P&gt;&lt;P&gt;Bug? How would I go about to "initialize" the Map2 pane without setting it to Active (weird map switching occur for user) in the code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 12:23:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/changeversion-doesn-t-reflect-in-toc-on-the-non/m-p/1620372#M12957</guid>
      <dc:creator>PärÅman</dc:creator>
      <dc:date>2025-06-03T12:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: ChangeVersion doesn't reflect in TOC on the non active map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/changeversion-doesn-t-reflect-in-toc-on-the-non/m-p/1620812#M12960</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/152508"&gt;@PärÅman&lt;/a&gt;, could&lt;SPAN&gt;&amp;nbsp;you please try calling &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic31878.html" target="_self"&gt;RefreshDatastore&lt;/A&gt; in the new version after the Map version change?&amp;nbsp;I think that will address the issue.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:41:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/changeversion-doesn-t-reflect-in-toc-on-the-non/m-p/1620812#M12960</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2025-06-04T14:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: ChangeVersion doesn't reflect in TOC on the non active map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/changeversion-doesn-t-reflect-in-toc-on-the-non/m-p/1621161#M12968</link>
      <description>&lt;P&gt;Tried:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Version newVersion = vmgr.CreateVersion(versionDescription);
foreach (var map in maps)
{
    map.ChangeVersion(currentVersion, newVersion);
}
newVersion.RefreshDatastore();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Unfortunately it didn't solve the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 13:53:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/changeversion-doesn-t-reflect-in-toc-on-the-non/m-p/1621161#M12968</guid>
      <dc:creator>PärÅman</dc:creator>
      <dc:date>2025-06-05T13:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: ChangeVersion doesn't reflect in TOC on the non active map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/changeversion-doesn-t-reflect-in-toc-on-the-non/m-p/1621235#M12971</link>
      <description>&lt;P&gt;Thank you for trying that. We'll investigate it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 16:21:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/changeversion-doesn-t-reflect-in-toc-on-the-non/m-p/1621235#M12971</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2025-06-05T16:21:23Z</dc:date>
    </item>
  </channel>
</rss>

