Select to view content in your preferred language

"InitialLocation" Propery of "OpenItemDialog" Class

979
4
10-01-2018 07:42 AM
BradJones2
Emerging Contributor

I have a very simple Add Data button in my add-in that's supposed to open a dialog at the InitialLocation property (OpenItemDialog class) set to the directory on our LAN where we keep all our organizations .lyr and .lyrx files.

The dialog had been opening to the set InitialLocation on the LAN without fail until we upgraded to ArcGIS Pro 2.2 or 2.2.1 (I can't remember which).  Now it opens in the last location the user navigated to, no matter where on the network.

Anyone have an idea on what's happening?

Right now Pro and the SDK are at 2.2.2

OpenItemDialog addToMap = new OpenItemDialog
{
    Title = "Add Data",
    InitialLocation = @"C:\",
    MultiSelect = true
};

 

0 Kudos
4 Replies
UmaHarano
Esri Regular Contributor

Hi Brad

I was able to see the same issue.  I have passed this on to the development team to take a look at this issue.

Thanks for reporting this one

Thanks

Uma

BradJones3
Regular Contributor

Thank you, Uma.

0 Kudos
KazemiDavood
Occasional Contributor

Hi Uma,

I am working with ArcGIS pro SDK 2.4 and I have still this issue. Have you found any solution to this issue?

0 Kudos
UmaHarano
Esri Regular Contributor

Hi Davood

This did not get addressed at 2.4.  We are looking into getting this addressed at 2.5. I will post to this thread when I have an update.

Thanks

Uma

0 Kudos