Dear All,
I have written the code as below mentioned and getting an error whilw trying to copy the data to the matrix :-
Dim ItemCode As Object
Dim oCFLEvento As SAPbouiCOM.IChooseFromListEvent
oCFLEvento = pval
If oCFLEvento.BeforeAction = False Then
Dim oDataTable As SAPbouiCOM.DataTable
Dim Code As String = ""
Dim Name As String = ""
oDataTable = oCFLEvento.SelectedObjects
oMatrix = F.Items.Item(item).Specific
Try
For i As Integer = 1 To oDataTable.Rows.Count
If i = 1 Then
oMatrix.GetCellSpecific("col_1", oMatrix.RowCount).Value = oDataTable.GetValue("ItemName", i)
oMatrix.GetCellSpecific("col_0", oMatrix.RowCount).Value = oDataTable.GetValue("ItemCode", i)
End If
If i <> 1 Then
oMatrix.GetCellSpecific("col_1", oMatrix.RowCount).Value = oDataTable.GetValue("ItemName", i)
oMatrix.GetCellSpecific("col_0", oMatrix.RowCount).Value = oDataTable.GetValue("ItemCode", i)
End If
Next
Error is showing :- Can't Set focus to the item.
Please suggest .