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