Skip to Content
author's profile photo Former Member
Former Member

how to catch cell lost focuse event of matrix

Dear all

can you tell me how to catch the cell lost fouc event of matrix.

i want to check the value is entered the that cell, which is not greter than the extising value..

thanks in advance......

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Aug 20, 2011 at 05:19 AM

    Hi

    For that you can use either validate or lost focus event

    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
    
            '*************************************************************************
            ' BubbleEvent sets the behavior of SAP Business One.
            ' False means that the application will not continue processing this event.
            '*************************************************************************
    
            ' Validate event
            If (pVal.FormType = 133) And (pVal.ItemUID = 38) And (pVal.ColUID = 1) And _
              (pVal.EventType = SAPbouiCOM.BoEventTypes.et_VALIDATE) Then
    
                If (pVal.Before_Action) Then
    
                    'write your code
    
                End If
            End If
    
            'Lost focus event
    
            If (pVal.FormType = 133) And (pVal.ItemUID = 38) And (pVal.ColUID = 1) And _
             (pVal.EventType = SAPbouiCOM.BoEventTypes.et_LOST_FOCUS) Then
    
                If (pVal.Before_Action) Then
    
                    'write your code
    
                End If
            End If
    
        End Sub

    Hope this helps

    Regards

    Arun

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.