Vault API - double vision after the custom command execution in 2020.1

Vault API - double vision after the custom command execution in 2020.1

Bronislav.Simunek
Enthusiast Enthusiast
711 Views
2 Replies
Message 1 of 3

Vault API - double vision after the custom command execution in 2020.1

Bronislav.Simunek
Enthusiast
Enthusiast

Hello

In my Vault Explorer extension, I have a custom command that updates an item. After this command is executed I need to force refresh the Vault Explorer UI because the user should see the changes.

To achieve this I used in the previous Vault versions this code:

ICommandContext.GoToLocation = ….

OR / AND

ICommandContext.ForceRefresh = true

 

Since my Vault Explorer has been updated to 2020.1 I am experiencing the following issue within the Vault Item master.

After my custom command is finished, I can the see the updated item in the extra row - this happens after setting ForceRefresh to true:

Elephant_ForceRefresh_Result.png

 

and this happens after setting GoToLocation:

Elephant_GoToLoc_Result.png

 

As you can see I use the localized version.

 

To reproduce the issue:

I enclose the simple Vault Explorer extension “Elephant” – you can install it by copying the contents of the ElephantExtension.zip file into the folder: c:\ProgramData\Autodesk\Vault 2020\Extensions\.

The source code is enclosed in ElephantSourceCode.zip

 

This extension implements three commands within the Vault item context menu.

All these commands modify the selected item (the item description is updated). After the command is finished, you can see the extra row in the Vault Explorer list view (top right pane).

 

I am kindly asking to fix this behaviour.

Thanks in advance.

 

Bronislav

712 Views
2 Replies
Replies (2)
Message 2 of 3

francis.harvey
Participant
Participant

Hi Bronislav,

 

I confirm I can see this behavior in our 2020 extension too, it was not present in our 2016 and 2018 extensions.

I'm not sure for how long it been like that...

 

Have you found a solution?

 

Thanks ,

Francis Harvey

0 Likes
Message 3 of 3

Bronislav.Simunek
Enthusiast
Enthusiast

Hello Francis

the only solution was to explain the customer there are just two choises:

  • not to refresh the VaultExplorer UI
  • to expect "double vision"

😞

 

Kind regards

Bron

0 Likes