cancel
Showing results for 
Search instead for 
Did you mean: 

Unknown reason

Former Member
0 Kudos
254

Hi everyone.

I have below code

'====================================

Public Sub DisEvent(ByVal formUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean)

Dim form As SAPbouiCOM.Form

Try

'

form = SBOApplication.Forms.Item(formUID)

If pVal.BeforeAction Then

Select Case pVal.EventType

Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED

'----


'ITEM_PRESSED

'----


Select Case pVal.ItemUID

'Run button

Case "3"

OutPutData(form)

End Select

End Select

End If

Catch ex As Exception

'

ShowErrMsg(ex.ToString)

Throw ex

End Try

End Sub

'----


Private Sub OutPutData(ByRef form As SAPbouiCOM.Form)

Dim executing As String

Try

'

form.Items.Item("105").Visible = True

executing = form.Items.Item("105").Specific.Caption() 'display "Running"

Catch ex As Exception

Throw ex

End Try

End Sub

'=================================================

when I press firmly at "Run" button ,it was properly displayed .

but if I press lightly,it wont display.

It didnt happen on 2005 version.

Anyone know that reason or how to fix it?Thanks

I am using :

B1 version: PL09

SDK: 2007

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member191896
Active Participant
0 Kudos

Hi MLTR,

You can use the EventLogger tool (part of B1DE) to see which events are triggered upon your button clicks. It is possible that no event is generated when you press it not so firmly.

HTH

Aravind

Former Member
0 Kudos

Thanks Aravin.

but now I am using Visual Studio 2003 ,so B1DE 2007 can not run in 2003 version.

Beside when I debug the program,it properly passed it.

former_member191896
Active Participant
0 Kudos

There is a B1DE version for VS 2003 as well. Refer to the bottom of this link https://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/a175fb62-0c01-0010-a8b5-fa58a13b1cf7 [original link is broken]

Former Member
0 Kudos

My B1 version is 2007.And there isnt version for VS 2003 .

former_member191896
Active Participant
0 Kudos

You can try this link to download & install the EventLogger tool alone without B1DE

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ede3be37-0e01-0010-1883-cd1...

Former Member
0 Kudos

I tried it.The event - ITEM_PRESSED really gerenated .

Former Member
0 Kudos

Is there any problem with SDK?

Former Member
0 Kudos

I tried Application.DoEvents ,but it doesnt work.