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

Matrix not updating in SBO 2004

Hi

I have a matrix with a DBDatasource tied to it. I have a total column at the end of the matrix which I want to update with the total for that line. This doesn't seem to be working. I am running this on the lost_focus event.

I have included the code below, can anyone suggest why it may not be updating please ?

Regards Andy

            For lc = 1 To nodays
              tot = CCur(tot + Val(omatrix.Columns(lc).Cells(pVal.Row).Specific.String))
            Next
            
            omatrix.GetLineData (pVal.Row)
            oform.DataSources.DBDataSources(0).SetValue "u_total", pVal.Row - 1, tot
            omatrix.SetLineData (pVal.Row)

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 10, 2005 at 12:37 PM

    Hi Paul,

    To "Add" values to your matrix - which you are not pulling from the DB - you have to specify an user data source. Thus add the user datasource to your totals column. Now run your code and calc the totals for each row - write the value to your column AND becuase you have the user datasource tied to the column -> the value s will be displayed!

    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.