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

DBDataSource Update?

Hi All,

I'm Using SBO Version 2004 and Form designed by screen painter.

DBDataSource query sourcecode:

Set oCondition = oConditions.Add

oCondition.BracketOpenNum = 1

oCondition.Alias = "U_ECRNO"

oCondition.Operation = co_EQUAL

oCondition.CondVal = sEcrNo

oCondition.BracketCloseNum = 1

Set oDBDataSource = oForm.DataSources.DBDataSources.Item("@ECRD")

Set oMatrix = oForm.Items("13").Specific

oMatrix.Clear

oDBDataSource.Query oConditions

For i = 0 To oDBDataSource.Size - 1

If oDBDataSource.Size > i Then

oDBDataSource.Offset = i

oMatrix.AddRow

End If

Next i

End If

Problem : To update the data which is inquired in the MATRIX how?

Sorry for my bad english.

I need your help.

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jan 05, 2005 at 05:38 AM

    I've ever tried using DBDataSource to query data to Matrix but I think using DBDataSource isn't more flexible tha we're using UserDataSource that value generated from Recordset . I think it's more flexible to generate many output based on our requirement that we use condition since there're so many limitation using DBDataSource.But using UserDataSource + Recordset we'll spend more code line that we use DBDatasource.But using UserDataSource we can use "update" to user table object.I dont even try SDK 2004 but in 6.5 DBDataSource Limited to Add Mode Only.

    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.