Hello all,
I am new to scripting in ALM, so for my "Hello World" project I would explore the ActionCanExecute event, since that seems to be an event that I may use frequently. So in the Admin Guide I read through the section, "Adding a Button to a Toolbar." I created the button, added the code below, and...nothing happened. So, I stripped out the IF statement and went with "MsgBox 'You just did ' & ActionName". Still nothing. I would have expected message boxes popping up all over the place. Any ideas? I'm on v11.5.
<Code>
Function ActionCanExecute(ActionName)
On Error Resume Next
ActionCanExecute = True
If ActionName = "UserDefinedActions.Requirements_Action1" Then
MsgBox "You clicked the Action1 button."
End If
On Error GoTo 0
End Function
</Code>