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

Disabling Matrix Columns

hi,

My aim is to disable matrix colums while in update mode, I'm also able to do it using the code below;

 matItems.Columns.Item("1").Editable = False

But by this my columns become disabled for ever, even when i close and open the form in other modes. I also tried doing the following;

 matItems.Columns.Item("1").Editable = True

But, its not working. Plz help.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Aug 13, 2009 at 07:00 AM

    Rohan

    matItems.Columns.Item("1").Editable = False

    Works fine. Some times SBO will kep this column disbled. You have to enable the column when you load the form. or before closing the form.

    Do you need the matrix completely disabled in OK mode?. Then just SetAutoManagedAttribute to the matrix.

    Anoop

    Add a comment
    10|10000 characters needed characters exceeded

    • Rohan.

      you can SetAutomanagedAttribute for any items in your form.

      So that the form item enable / diable visibility / invisibility will be managed by form if Form.Automanaged = true.

      Using this code you can set AutomanagedAttribute

      oForm.Items.Item("textUID").SetAutoManagedAttribute(SAPbouiCOM.BoAutoManagedAttr.ama_Editable, -1, SAPbouiCOM.BoModeVisualBehavior.mvb_False);
      oForm.Items.Item("textUID").SetAutoManagedAttribute(SAPbouiCOM.BoAutoManagedAttr.ama_Editable, 2, SAPbouiCOM.BoModeVisualBehavior.mvb_True);

      Using this code the form will set txtUID control disabled all modes and enables in Add Mode

      Anoop

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.