Hi,
From an event handler exension, running in Vault explorer I need to update Vault properties.
I want this to accomplish by : VltExplorerUtil.UpdateFileProperties(LatestVersion, propstoupdate);
This function crashes random. Sometimes it works, sometine it fails. Don't know why. If failed, then simply returns error "could not update properties"
Anyone know why and how to solve?
To solve I want to try get vltexplorerUtil object using ExplorerLoader.GetExplorerUtil(Iapplication) instead of ExplorerLoader.LoadExplorerUtil as suggested by Doug Redmond
My next question : How to get the Iapplication object to pass as argument in an event handler extension
I a regular vault extension you need to implement interface :IExplorerExtension
the Application object is then passed in this void:
public void OnLogOn(IApplication application)
However this concerns a event handler which does not implement this interface :IExplorerExtension
How to get the application object?
So I have 2 questions:
@1Updateproperties function crashes random. Don't know why. simply return error could not update properties...
@2how to get Iapplication object to use as argument in ExplorerLoader.GetExplorerUtil(Iapplication)
Hope someone can help me.
thanks in advance
best reagards,
Martijn van Giels
Solved! Go to Solution.
Solved by smithmat. Go to Solution.
Hope that helps,
- Matt