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

To retrieve value from a column (Matrix)

Hello

Does anyone have a sample on how to retrieve values from a column of a row in the matrix.I tried using the following code but it does not work:

sItemCode = oMatrix.Columns.Item(1).Cells.Item(oMatrix.RowCount).Specific

Thanks John

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2005 at 07:55 AM

    Hello,

    try this

    Dim dsa_EditText As SAPbouiCOM.EditText

    dsa_EditText = oMatrix.Columns.Item(ColumnName).Cells.Item(RowNumber).Specific()

    Return dsa_EditText.Value

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      In that case, you should use the userdatasource (if the column is linked to a userdatasource) or the dbdatasource

      userdatasource :

      oMatrix.GetLineData(RowNumber)

      sItemCode = oForm.DataSources.UserDataSources.Item("Name").ValuEx

      DbdataSource

      sItemCode = oForm.DataSources.DbDatasource.Item("TableName").GetValue("fieldname", RowNumber)

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.