<?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: Refresh homefolder/catalog to see newly added contents in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/refresh-homefolder-catalog-to-see-newly-added/m-p/1021983#M6108</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You may be able to invoke esri_itemInfoRefreshButton manually,&amp;nbsp; but you would have to specify which folder.&amp;nbsp; &amp;nbsp;There could also be an "invalidate" command, which would force your Catalog to refresh/reload the newly added folders.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Exploration/IdentifyWindow/Daml.cs" target="_blank"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Exploration/IdentifyWindow/Daml.cs&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredericPoliart_EsriAU_0-1612141395764.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4996iC54BD567DA87B3D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredericPoliart_EsriAU_0-1612141395764.png" alt="FredericPoliart_EsriAU_0-1612141395764.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;FredericPoliart_EsriAU_0-1612141395764.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Feb 2021 01:07:33 GMT</pubDate>
    <dc:creator>FredericPoliart_EsriAU</dc:creator>
    <dc:date>2021-02-01T01:07:33Z</dc:date>
    <item>
      <title>Refresh homefolder/catalog to see newly added contents</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/refresh-homefolder-catalog-to-see-newly-added/m-p/1021979#M6107</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've created ArcPro Add-in in C# and added folder under home folder and copying project related content into it.&lt;/P&gt;&lt;P&gt;After adding folder I'm activating Catlog pane. If my project home folder is already in open state then i can't see newly added folder. I need to manually click on folder/homefolder location and hit refresh command.&lt;/P&gt;&lt;P&gt;Is there any way I can programmatically refresh homefolder/folder to see updated contents?&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 00:59:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/refresh-homefolder-catalog-to-see-newly-added/m-p/1021979#M6107</guid>
      <dc:creator>PrashantKirpan</dc:creator>
      <dc:date>2021-02-01T00:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh homefolder/catalog to see newly added contents</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/refresh-homefolder-catalog-to-see-newly-added/m-p/1021983#M6108</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You may be able to invoke esri_itemInfoRefreshButton manually,&amp;nbsp; but you would have to specify which folder.&amp;nbsp; &amp;nbsp;There could also be an "invalidate" command, which would force your Catalog to refresh/reload the newly added folders.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Exploration/IdentifyWindow/Daml.cs" target="_blank"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Exploration/IdentifyWindow/Daml.cs&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredericPoliart_EsriAU_0-1612141395764.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4996iC54BD567DA87B3D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredericPoliart_EsriAU_0-1612141395764.png" alt="FredericPoliart_EsriAU_0-1612141395764.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;FredericPoliart_EsriAU_0-1612141395764.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 01:07:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/refresh-homefolder-catalog-to-see-newly-added/m-p/1021983#M6108</guid>
      <dc:creator>FredericPoliart_EsriAU</dc:creator>
      <dc:date>2021-02-01T01:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh homefolder/catalog to see newly added contents</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/refresh-homefolder-catalog-to-see-newly-added/m-p/1021989#M6109</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried to execute below code but CanExecute returning false so unable to execute command. Also not sure how to specify folder to execute command? Could you please provide any sample?&lt;/P&gt;&lt;P&gt;var commandId = @"esri_itemInfoRefreshButton";&lt;BR /&gt;var iCommand = FrameworkApplication.GetPlugInWrapper(commandId) as ICommand;&lt;BR /&gt;if (iCommand != null)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; if (iCommand.CanExecute(null))&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; iCommand.Execute(null);&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;-Prashant&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 02:10:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/refresh-homefolder-catalog-to-see-newly-added/m-p/1021989#M6109</guid>
      <dc:creator>PrashantKirpan</dc:creator>
      <dc:date>2021-02-01T02:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh homefolder/catalog to see newly added contents</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/refresh-homefolder-catalog-to-see-newly-added/m-p/1021992#M6110</link>
      <description>&lt;P&gt;The following sample has similar&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;FrameworkApplication.GetPlugInWrapper() commands:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/HookProCommands" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/HookProCommands&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;but I agree, you would need to specify which sub-folder you are targeting (for the refresh)&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 03:34:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/refresh-homefolder-catalog-to-see-newly-added/m-p/1021992#M6110</guid>
      <dc:creator>FredericPoliart_EsriAU</dc:creator>
      <dc:date>2021-02-01T03:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh homefolder/catalog to see newly added contents</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/refresh-homefolder-catalog-to-see-newly-added/m-p/1022002#M6111</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried to execute refresh command in same project but still CanExecute returning false value. Exit application/Bookmark are working fine.&lt;/P&gt;&lt;P&gt;Could you please help me out to set target for refresh command?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; protected override void OnClick()
        { 
            var commandId = FrameworkApplication.GetPlugInWrapper(@"esri_core_exitApplicationButton") as ICommand;
            if (commandId != null)
            {
                if (commandId.CanExecute(null))
                    commandId.Execute(null);
            }

            var commandId1 = FrameworkApplication.GetPlugInWrapper(@"esri_itemInfoRefreshButton") as ICommand;
            if (commandId1 != null)
            {
                if (commandId1.CanExecute(null))
                    commandId1.Execute(null);  /******** Not Executing ***********/
            }
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Prashant&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 04:41:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/refresh-homefolder-catalog-to-see-newly-added/m-p/1022002#M6111</guid>
      <dc:creator>PrashantKirpan</dc:creator>
      <dc:date>2021-02-01T04:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh homefolder/catalog to see newly added contents</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/refresh-homefolder-catalog-to-see-newly-added/m-p/1022190#M6112</link>
      <description>&lt;P&gt;I guess Esri might change internal interfaces in future releases, but typically once an interface is defined it's not supposed to change (?)&lt;/P&gt;&lt;P&gt;This works for me:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;foreach (var itm in Project.Current.Items.OfType&amp;lt;FolderConnectionProjectItem&amp;gt;())
{
    ((ArcGIS.Desktop.Internal.Core.IItemInternal)itm).RefreshChildren();
}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 01 Feb 2021 17:32:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/refresh-homefolder-catalog-to-see-newly-added/m-p/1022190#M6112</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-02-01T17:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh homefolder/catalog to see newly added contents</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/refresh-homefolder-catalog-to-see-newly-added/m-p/1022368#M6114</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/201161"&gt;@KirkKuykendall1&lt;/a&gt;&amp;nbsp;, Perfectly working&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 23:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/refresh-homefolder-catalog-to-see-newly-added/m-p/1022368#M6114</guid>
      <dc:creator>PrashantKirpan</dc:creator>
      <dc:date>2021-02-01T23:10:59Z</dc:date>
    </item>
  </channel>
</rss>

