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

disabeling a row within a matrix

Hi all

I'd like to know if there is a way to disable a row within a matrix to make it uneditable?

appreciate the help

Yoav

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Jan 11, 2007 at 10:00 AM

    Hi YECHIEL SCHUSSEIM ,

    It is not possible to disable a row within a matrix.But we can prevent the user form updating this .

    I have catched all events and prevent them from update like

    Select Case pVal.EventType

    Case SAPbouiCOM.BoEventTypes.et_CLICK

    Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED

    '//****** Get focus event

    Case SAPbouiCOM.BoEventTypes.et_GOT_FOCUS

    '// Here u get ur desired column to prvent from updation

    If pVal.Before_Action = False Then

    Try

    oMatrix1 = SBO_Application.Forms.Item(formuid).Items.Item(pVal.ItemUID).Specific

    oEdit = oMatrix1.Columns.Item(pVal.ColUID).Cells.Item(pVal.Row).Specific

    oEdit.Active = False

    BubbleEvent = False

    Catch ex As Exception

    'SBO_Application.MessageBox(ex.Message)

    End Try

    Hope it helps

    Regards

    V.Rangarajan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 03:53 PM

    Hi

    I've tried your solution only it causes the focus to move to the next column. a behaviour which i want to prevent

    appreciate the help

    Yoav

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 11, 2007 at 10:00 AM

    Hi YECHIEL SCHUSSEIM ,

    It is not possible to disable a row within a matrix.But we can prevent the user form updating this .

    I have catched all events and prevent them from update like

    Select Case pVal.EventType

    Case SAPbouiCOM.BoEventTypes.et_CLICK

    Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED

    '//****** Get focus event

    Case SAPbouiCOM.BoEventTypes.et_GOT_FOCUS

    If pVal.Before_Action = False Then

    Try

    oMatrix1 = SBO_Application.Forms.Item(formuid).Items.Item(pVal.ItemUID).Specific

    oEdit = oMatrix1.Columns.Item(pVal.ColUID).Cells.Item(pVal.Row).Specific

    oEdit.Active = False

    BubbleEvent = False

    Catch ex As Exception

    'SBO_Application.MessageBox(ex.Message)

    End Try

    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.