Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

Re: Multiple Rows Selection in Choose From List

$
0
0

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 .


Viewing all articles
Browse latest Browse all 8944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>