cancel
Showing results for 
Search instead for 
Did you mean: 

Help me Double Event

Former Member
0 Kudos

Soucecode ..

private void B1_Application_ItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)

{

BubbleEvent = true;

if ((FormUID == "Frm002") & (pVal.BeforeAction == false))

{

switch (pVal.EventType)

{

case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED:

{

if (pVal.ItemUID == "1")

{

DoAddToTable();

}

break;

}

}

}

Q. DoAddToTable() ? Why work twice.

A.

Thank you.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi satish b

thank you for answer

do you post code example ?

Former Member
0 Kudos

Hey Mate,

What I mean to say is, your code itself seems to be correct. I dont need to post an other example. Just that see if you DoAddTable function is called in any other event other than the specified one.

Also check the same with a break point and see when it is called for the 2nd time.

Regards,

Satish.

Former Member
0 Kudos

Hi,

Your piece of code seems to be correct. Just that, check if the DoAddToTable is being called in any other event other than Item Pressed, or keep a break point and see, when exactly is the 2nd time occuring.

Regards,

Satish.