Hello All,
I've developed an Add-on for SAP B1 9.0
I'm facing a weird issue, I added a button in some SAP Forms, I validate BeforeAction, and EvenType as well,
But sometimes when users click this buttons, when it finish execute all code (Code that takes 1 minute because it is a heavy process), It starts again, and again (no user interaction).
Have you faced this kind of issue?
if ((pVal.FormType == 133 || pVal.FormType == 60090 || pVal.FormType == 179 || pVal.FormType == 60091)
&& pVal.BeforeAction == false
&& (pVal.EventType == SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED || pVal.EventType == SAPbouiCOM.BoEventTypes.et_FORM_LOAD))
{
oForm = SBO_Application.Forms.Item(FormUID);
switch (pVal.EventType)
{
case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED:
if (oForm.Mode == SAPbouiCOM.BoFormMode.fm_OK_MODE)
{
if (pVal.ItemUID == "FOA_PRINT")
{
//-PRINT SOMETHING THAT TAKES ABOUT 1 min.
}
break;
}//--End Switch
}//-- IF