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

Need Help Regarding Enabling The Matrix

Hi All,

We have got one user form and we have got one choose from list and one matrix, on click of choose from list the value will be displayed in the text box and at the same time matrix should get enabled. But it;s not happening in our case. The value is coming in the text box through choose from list but matrix is not getting enabled. We are able to change the back ground color of the matrix, make first column invisible and all but not able to enable the matrix. We need help regarding this one.

Regards,

Jayanth

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2007 at 09:05 AM

    what do you mean by enabling do you want to fill the matrix with some data

    then you should bind columns of the matrix to a data source and update the values in respective data source and then use matrix.setlinedata method

    hope this will help

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2007 at 09:24 AM

    hi,

    you may also have to do.. omatrix.addrow() after populating the text box.

    hth,

    lakshman.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2007 at 09:27 AM

    Hi atul pansare,

    We have got one user form and we have got one choose from list and one matrix, on click of choose from list the value will be displayed in the text box and at the same time matrix should get enabled.

    i want matrix to be enabled so that i can enter any thing................... it's not like binding the data to data source.

    right now i am unable to do it.......... please help me.

    Jayanth

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2007 at 12:01 PM

    Hey first bind the columns of matrix to any user datasource

    and then you can enter any thing into your matrix

    following code may help

    suppose you have one column

    oForm = SBO_Application.Forms.Item("URFRM")

    oUserDataSource = oForm.DataSources.UserDataSources.Add("URDSName",

    SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 20)

    oMatrix=oForm.Item("URMATRX")

    oMatrix = oItem.Specific

    oColumns = oMatrix.Columns

    oColumn = oColumns.Item("URCOLName")

    oColumn.DataBind.SetBound(True, "", "URDSName")

    oMatrix.Addrow()

    hope this will help

    additionally you can look at this sample

    .....SAP\SAP Business One SDK\Samples\COM UI\VB.NET\06.MatrixAndDataSources

    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.