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

Matrix column data

hi all,

how to pass the value for a particular column in the matrix from my back end coding?????

oMatrix.Columns.Item("tspent").Cells.Item(iCnt)= 45  //Any Value

like this i want to pass my value from the backend coding..but at this line it's saying error........how to do this???

regards,

shangai.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Oct 09, 2008 at 12:19 PM

    Hi,

    i guess you want to do this:

    oMatrix.Columns.Item("tspent").Cells.Item(iCnt).Specific.Value = "45"

    lg David

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 09, 2008 at 12:31 PM

    Hi

    1) column uid in your matrix is tspent ? I meen what you shoud use item uid.

    For iCnt = 1 To oMatrix.VisualRowCount
      oMatrix.Columns.Item("tspent").Cells.Item(iCnt)= 45  //Any Value
    Next
    

    2) Or you can do it so:

    For iCnt = 1 To oMatrix.VisualRowCount
      oMatrix.GetLineData(iCnt)
      'oMatrix.Columns.Item("tspent").Cells.Item(iCnt)= 45  //Any Value
      oForm.DataSources.UserDataSources.Item("userdatasourcenamehere").Value = 45
      oMatrix.SetLineData(iCnt)
    Next
    

    3) Also try to check type and size of the column if you are using userdatasource ...

    <userdatasources>
      <action type="add">
        <datasource uid="uTspent" type="9" size="8"/>
          <datasource uid="u_BPCode" type="9" size="15"/>
    

    Regards

    Sierdna S.

    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.