cancel
Showing results for 
Search instead for 
Did you mean: 

Checking selected row in matrix

Former Member
0 Kudos

hi all

how do we check the selectd row from matrix, i had creaded following code

Dim x As Integer

For x = 1 To oMatrix.se

If oMatrix.IsRowSelected(x) = False Then

SBO_Application.SetStatusBarMessage("No Row Selected.!!........", SAPbouiCOM.BoMessageTime.bmt_Short, True)

BubbleEvent = False

Exit Sub

End If

Next

but it wont work it just select the valu form last row if matrix have more than one row...

plz help me

thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

former_member689126
Active Contributor

Hi

You can use the GetNextSelectedRow method to get the selected row

 Dim oMatrix As SAPbouiCOM.Matrix = _form.Items.Item(_matrixUID).Specific
 Dim selRow As Integer = oMatrix.GetNextSelectedRow(0, BoOrderType.ot_SelectionOrder)

Hope this helps

Regards

Arun

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Kishor,

Try This....


   For i As Integer = 1 To omatrix.RowCount
     If omatrix.IsRowSelected(i) = True Then
     sbo_application.MessageBox("Row" & i & "is Selected")
  End if
    Next

Thanks

Shafi

Former Member
0 Kudos

thanks it help me out !!!!