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

Problem in Matrix control


When i develope a add on form i used the matrix control to capture more data. <b>I can't edit the matrix contol in run mode.</b> How to add the new record thru Matrix. If not what is the alternate way. My requirement is to Enter the purchase Requestion. For that i need to capture the data in header level for some fields and Item details,Required quantity and Required date in Row level. For that i used Matrix. Is it correct?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 23, 2006 at 09:30 AM


    You have to get a handle to your matrix.

    oMatrix = SBO_Application.Forms.Item(FormUID).Items.Item(MatId).Specific

    Then add a row.


    You will be able to type now in the cells.

    But as soon as you exit the cell it will lose the contents.You must either add datasources or you must link this to tables that are part of a UDO to avoid retain the data in the cells.

    Hope this helps 😊

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi

      Look in your install directory, there are a few samples that one can use. Look in C:\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET then at sample 06.MatrixAndDataSources

      If you are building a form similar to SAP Business One documents like Sales Order have a look at UDO. The UDO will do all the work for you like inserting in the database, allocating a doc number, scrolling through the records.

      Hope this helps 😊

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.