I am having a problem with a button that has been added to the SalesOrder screen. It operates with no problems if use the Sales Order screen and "certain" other screens in our Add-on. However, certain Add-on screens cause the button on the SalesOrder screen to be rendered inoperable.
In the ItemEvent of Main.vb I use the ItemEvent Sub:
If pVal.BeforeAction = False Then
If pVal.FormTypeEx = "139" Then
Select Case pVal.EventType
'Execute code here
This works great. But the times it does not, I find that the pVal.EventType is ItemPressed.
I cannot figure out what to do here or what is causing this misbehavior.
Is there anyone that has been exposed this issues before?