on 04-02-2007 10:06 AM
Hi all
I handle the event of clicking on a button within a user form.
the first time the event is being handled by the code i can see the event appearing in the event logger. the second time the event handling code is being activated the event does not appear in the event logger.
what could be causing this behaviour?
appriciate the help
Yoav
Hi Yechiel,
Please check the pval.InnerEvent, I have the same problem, and it was an event that was handled twice too, one for InnerEvent = True (Application), and another time for InnerEvent=False (User).
Thks,
Christiano.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yoav,
I think that you are not yet familiar with the BubbleEvent Property of events. What you are talking about is events being called twice, once for BeforeAction = True and the other for BeforeAction = False.
You actually need to set the BubbleEvent = False once your function has performed its necessary opertaion. This would stop the event from being called twice. for examlpe
If pval.ItemUID = "OK_Button" And pval.BeforeAction = False Then
If MyABCFunction() = True then
BubbleEvent = False
end if
End If
Hope it helps.
Reagrds
Rizwan Hafeez
Team Lead
SAP Addon Development Section
Abacus Consulting - Pakistan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Every event is raised twice, before and after B1 handle the event itself.
Can you be more precise on which event you are handling and what is it
going wrong there ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
7 | |
7 | |
4 | |
3 | |
3 | |
3 | |
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.