cancel
Showing results for 
Search instead for 
Did you mean: 

UI API: CheckBox does is not checked after et_Click event

Former Member
0 Kudos

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()

Me.m_PDH.AddPrototype()

Return False

End If

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

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.

Regards,

Yaniv G.

SDK consultant,

SAP Manage Israel.

Former Member
0 Kudos

Thanks it worked perfect!

former_member374
Active Contributor
0 Kudos

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.

Answers (0)