Skip to Content
author's profile photo
Former Member

UI API: CheckBox does is not checked after et_Click event

I can check the checkbox when I don't have a et_Click event, however when I add the et_Click event to the checkbox it processes the event but does not show the checkbox checked (UI/DI is 6.5). Any advice?

'Here is the code I have

Dim oChkPt As SAPbouiCOM.CheckBox

oFormAdvQt.DataSources.UserDataSources.Add("chkPt", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)

oItem = oFormAdvQt.Items.Add("chkPt", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)

With oItem

.Height = 14

.Left = 550

.Top = 45

.Width = 120

.Visible = True

.FromPane = 0

.ToPane = 0

End With

oChkPt = oItem.Specific

oChkPt.DataBind.SetBound(True, "", "chkPt")

'Click Event

If pVal.ItemUID = "chkPt" Then

Me.oEdtArNo.Value = GenerateArtNo()

Call SaveFormValues()


Return False

End If

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    author's profile photo
    Former Member
    Aug 15, 2004 at 10:31 AM


    Please use the <b>Item_Pressed</b> instead of the <b>click</b> event.

    <u>Click</u> event is <u>only for editable items</u> like editText.


    Yaniv G.

    SDK consultant,

    SAP Manage Israel.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Craig,

      You are thanking a poster for his answer.

      Please next time also give him points.

      See: /people/mark.finnern/blog/2004/08/10/spread-the-love

      This time I did it for you.

      Remember: When you ask a question you also assume the responsibility to assign points.

      Please check your other questions and if the answers were good.

      Spread the love and give some points.

      Thanks in advance, Mark.