Add Handler on Command Check Out

Add Handler on Command Check Out

davdelomb
Contributor Contributor
588 Views
1 Reply
Message 1 of 2

Add Handler on Command Check Out

davdelomb
Contributor
Contributor

Hi,

 

I've wrote some code that checks my "description"  and "subject" property value.

For now the code is activated when the drawing is activated, but I want to add a handler on the command Check Out..

 

But I can't seem to figure it out to check if the command is activated?

 

Thanks

0 Likes
Accepted solutions (1)
589 Views
1 Reply
Reply (1)
Message 2 of 2

davdelomb
Contributor
Contributor
Accepted solution

Already Solved !

 

  AddHandler VaultCheckOut.OnTerminateCommand, AddressOf VaultCheckOut_OnActivateCommand
  AddHandler VaultCheckIn.OnActivateCommand, AddressOf VaultCheckIn_OnActivateCommand
     
    Private Sub VaultCheckOut_OnActivateCommand(ByVal CommandName As String, ByVal context As NameValueMap)
        If CommandName = "VaultCheckout" Or CommandName = "VaultCheckoutTop" Then
            DataOphalenIPT()
        End If
    End Sub
Private Sub VaultCheckIn_OnActivateCommand(ByVal CommandName As String, ByVal context As NameValueMap) If CommandName = "VaultCheckin" Or CommandName = "VaultCheckinTop" Then DataOphalenIPT() End If End Sub
0 Likes