on 08-14-2004 5:17 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
107 | |
12 | |
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.