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

UI 6.7 - DBDataSources and Post Data


I have a user table (MyTable), with a user field (REF),

a form created with Screen Painter.

I load the form using SBO_Application.LoadBatchActions(XML), add a dbdatasource - oForm.DataSources.DBDataSources.Add("@MyTable"),

fill an edittext with the value in the field - oForm.Items.Item("oREF").Specific.Databind.SetBound(True, "@MyTable", "U_REF")

Everything is fine until now,

the user changes the value of the edittext, and when click in the Add/Update button, I want to post this new value in "MyTable".

I am using -

oform.DataSources.DBDataSources.Item("@MyTable").SetValue("U_REF", 0, oEditText.Value)

In debug, after that code line, if I get the field value (.GetValue("U_REF", 0) ), it gives the correct value, but after i close the form and see the user table, it isn't updated, the field didn't changed.

What I have to do to change the field value?


Ribeiro Santos

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 26, 2005 at 11:49 AM

    I solved using:

    If oCompany.UserTables.Item("MyTable").GetByKey(1) Then

    oCompany.UserTables.Item("MyTable").UserFields.Fields.Item("REF").Value = "My NewValue"

    lRet = oCompany.UserTables.Item("MyTable").Update

    if lRet <> o then


    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.