Skip to Content
0
Former Member
Jul 08, 2008 at 10:45 AM

matrix combobox selected is always = "nothing" (blanket application)

61 Views

I'm frustrated!!!

I select a value from the combobox in the matrix, but i always get nothing from combo.selected!

I'm sure the code is correct!

If (pVal.ItemUID = "mat") And (pVal.ColUID = "ItemCode") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_COMBO_SELECT) And (pVal.Before_Action = False) Then

Try

Dim oEdit As SAPbouiCOM.EditText

Dim oCombo As SAPbouiCOM.ComboBox

Dim oMatrix As SAPbouiCOM.Matrix

Dim oForm As SAPbouiCOM.Form

oForm = SBO_Application.Forms.Item("FBLK")

oMatrix = oForm.Items.Item("mat").Specific

oCombo = oMatrix.Columns.Item("ItemCode").Cells.Item(pVal.Row).Specific

oEdit = colItemName.Cells.Item(pVal.Row).Specific

If oCombo.Selected Is Nothing Then

oEdit.Value = Nothing

Else

oEdit.Value = oCombo.Selected.Description

End If

Catch ex As Exception

MsgBox(ex.Message)

End Try

Do anyone faced the same problem before?

What else can I check???

Thank's in advance

Andrea