Vault API - double vision after the custom command execution in 2020.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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:
and this happens after setting GoToLocation:
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