on 06-18-2009 8:02 AM
hi expert all
when my check box is true matrix, button are visible it will stay in the form . but when i check box is false matrix ,button also will stay.. please help me.
my code
draw form ()
oItem = oForm.Items.Add("chekItm", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)
oItem.Left = 565
oItem.Width = 65
oItem.Top = 182
oItem.Height = 20
oCheckBox = oItem.Specific
oCheckBox.Caption = "delivery "
oCheckBox.DataBind.SetBound(True, "@VTPR", "U_chkDo")
''''''''''''''''''''''''''''''''' item event
If (pVal.ItemUID = "chekItm") = True And (pVal.BeforeAction = False) Then
'If Chk1.Checked = True Then
oForm.Items.Item("BtnAdd").Visible = True
oForm.Items.Item("tQTxt").Visible = True
oForm.Items.Item("trval").Visible = True
oForm.Items.Item("Mat1").Visible = True
oForm.Items.Item("Btn2").Visible = True
oForm.Items.Item("REgTxt").Visible = True
End If
Hi, I'm not sure I understand the problem. Would you like the items to disappear when you uncheck the checkbox? If so then just add this to your code
'If Chk1.Checked = False Then
oForm.Items.Item("BtnAdd").Visible = False
oForm.Items.Item("tQTxt").Visible = False
oForm.Items.Item("trval").Visible = False
oForm.Items.Item("Mat1").Visible = False
oForm.Items.Item("Btn2").Visible = False
oForm.Items.Item("REgTxt").Visible = False
End If
I'm sorry if I didn't understand the question
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.