Skip to Content
0
Former Member
Jun 18, 2009 at 07:02 AM

check box problem ?

24 Views

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