Skip to Content
Former Member
Aug 01, 2007 at 02:11 PM

Adding Button to Sales Order Screen Problem


Good Afternoon


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

Case et_CLICK

'Execute code here

End Select

End If

End If

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?