on 06-22-2015 3:26 PM
Hi ,
Am going for a addon certification .Am checking addon through Testing Tools When i use B1 Bubble Checker tool It show bubble event false in Menu click event
I searched through SDN Forum but i didn't find a solution .Kindly help me to get out of this issue .
First time Bubble event in true state
Again it change to False
Here is my Code and Error screen shot
Am using VB 2005
sap 9.0
Private Sub oApplication_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles oApplication.MenuEvent
Try
If pVal.BeforeAction = False Then
Select Case pVal.MenuUID
Case frmRoutemasterFormID
If oGFun.FormExist(frmRoutemasterFormID) Then
oApplication.Forms.Item(frmRoutemasterFormID).Visible = True
oApplication.Forms.Item(frmRoutemasterFormID).Select()
Else
oRoutemaster.LoadInstruement()
End If
Hi Jaba,
Whenever you click any Item or Menu in SAP Business One, pVal.BeforeAction = true is fired.
Here is what BeforeAction means:
It indicates whether the event handler method is being called before the application handles the event or after.
True: The application has not yet handled the event.
False: The application has handled the event.
So in your case it is the normal behaviour. The first time it will be BeforeAction = true always and then will change to false.
Apart from this, is there any problem that you are having because of this. Please explain.
Hope it helps.
Thanks & Regards
Ankit Chauhan
SAP Business One Global Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jaba,
BubbleEvent only relevant during BeforeAction = true.
The purpose of BubbleEvent is a flag to let SBO know whether to process the next event.
Below is the cycle of menu click event
Before MenuClick (BeforeAction=true + By default BubbleEvent = true)
After MenuClick (BeforeAction=false)
If inside the BeforeAction event you set the BubbleEvent = true, SBO will process the After MenuClick.
If inside the BeforeAction event you set the BubbleEvent = false, SBO will NOT process after menuclick.
As you can see, there is no other event relating to menuclick after the 'After-MenuClick' event, thus BubbleEvent = true or BubbleEvent = false does not matter anymore.
Regards
Edy
Hi Jaba,
As I my previous post.
The BubbleEvent in BeforeEvent = False is not relevant.
Moreover, the event logger log the event before your code. Not after you set the bubbleevent value.
Hence the value in the event logger is the default value.
If you were thinking that the BubbleEvent value should persists between BeforeAction=True and BeforeAction=False, then you are wrong.
The BubbleEvent only relevant to the current event. It will not persists between events.
Regards
Edy
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
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.