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

UI :Error binding user defined field when binding to matrix

hi,

I have a Lookup consisting of matrix. I have a user defined Table @NEW. I added a DBDataSource to @NEW table

oForm.DataSources.DBDataSources.Add("@NEW")

But when the User defined table is EMPTY, there seems to be error when binding the form items between the requested DB table field and the item.

oColumn.DataBind.SetBound(True, "@NEW", "U_CodeNo")

I am not able to proceed after the above line.But the same does not happen when i use standard SAP table.

Pls help me.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 29, 2004 at 11:39 AM

    HI Mina:

    After creating the matrix u have to bind the data to ur matrix there is a way to do that:

    Public Sub BindDataToForm()

    Dim oMatrix As SAPbouiCOM.Matrix

    Dim oColumns As SAPbouiCOM.Columns

    Dim oColumn As SAPbouiCOM.Column

    Set oMatrix = oForm.Items.Item("Matrix1").Specific

    Set oColumns = oMatrix.Columns

    Set oColumn = oColumns.Item("CodeNo")

    oColumn.DataBind.SetBound True, "@New", "U_CodeNo"

    Set oColumn = oColumns.Item("CodeNo2")

    oColumn.DataBind.SetBound True, "@New", "U_CodeNo2"

    Set oColumn = oColumns.Item("CodeNo3")

    oColumn.DataBind.SetBound True, "@New", "U_CodeNo3"

    End Sub

    Doping this u set to each column the data u want froma your user table.

    I hope this was your question.

    Ciaoo

    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.