on 09-10-2009 7:38 AM
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.
hi satish b
thank you for answer
do you post code example ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.