How to Cancel Vault Commands

How to Cancel Vault Commands

georg_michalik
Contributor Contributor
724 Views
3 Replies
Message 1 of 4

How to Cancel Vault Commands

georg_michalik
Contributor
Contributor

Hi,

 

I'am trying to disable the MoveToFolder Command with DragAndDrop. Sometimes customers are moving documents by accident and there is no way to stop.

 

I tried with CommandBegin and the Command id MoveToFolder and then Application.Exit or something else but this doesn't work.

Than I tried GetRestriction for Delete but it seems that the Command doesn't fire this event. To hide the MoveToFolder Command hides the Command in the menu but doesn't block the Command.

 

Thanks for Help.

 

Georg

 

 

0 Likes
725 Views
3 Replies
Replies (3)
Message 2 of 4

Redmond.D
Autodesk
Autodesk

Did you try GetRestriction for the MoveFile and MoveFolder events?  I would expect one of those to fire.



Doug Redmond
Software Engineer
Autodesk, Inc.

0 Likes
Message 3 of 4

georg_michalik
Contributor
Contributor

Hello Doug,

 

Thank you for answering, but my request is for 2012. Sorry I forgot about it. The move event doesn't exist in 2012, right?

 

Georg

0 Likes
Message 4 of 4

Redmond.D
Autodesk
Autodesk

Correct, there is no move event.  There is no way to block move commands in the Vault 2012 API.



Doug Redmond
Software Engineer
Autodesk, Inc.

0 Likes