Skip to Content
0
Former Member
Sep 02, 2005 at 07:38 AM

Problem working with Matrix (UI)

27 Views

Hi gurus!

I've problem with Curreny Exchange Form

I try to situate in cell automatically, but only works if the cell is visible in screen. If cell is in form but needs scroll for view it, my code doesn't work.

This is my VB.NET code

        If pVal.FormTypeEx = "866" Then
            If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_ACTIVATE Then
                If pVal.BeforeAction = False Then
                    Try
                        Dim Matriz As SAPbouiCOM.Matrix
                        Dim i As Integer
                        Matriz = SBOApp.Forms.Item(FormUID).Items.Item("4").Specific
                        For i = 0 To Matriz.Columns.Count - 1
                            Dim k As Integer
                            If Matriz.Columns.Item(i).Title = MyCurrency Then
                                Matriz.Columns.Item(i).Cells.Item(Now().Day).Click()
                            End If
                        Next
                    Catch ex As Exception
                        SBOApp.MessageBox(ex.Message)
                    End Try
                End If
            End If
        End If

Note: I tested this with FORM_LOAD event with same result

Thnx in advance

Juli