I have an add-on that puts a new button on the Item Master form. Clicking that item brings up a new data entry form. Everything works well except that it appears the click event is firing twice. I have this code to capture the click for the custom button:
If pVal.Before_Action = False And pVal.ItemUID = "btnMxSet" Then
..load my new form
End If
The problem is that the form tries to load twice because the event is fired twice. I added an SBO message box before loading the form and it only fires off once. I suppose I can check to see if the form is loaded, but I want to see why the event fires twice.
Any ideas? If not, what's the best way to check to see if a given form is loaded?
The people on this forum are very helpful!
Thanks.