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

Add rows in User Defined Object

Hi all,

I've created a simple User Defined Object.

I have a Master Data table (with the fields code and name)

and a Master Data Line (with just on field itemCode)

I want to use my own form to fill the information. For that I created a form, with two edit text items (link to the field Code and Name) and a matrix with one column bounded to my table Master data Line

it works fine if I want to add data only in the master data table, witout related record in the master data line atble.

The probleme I have is to add more than one record in my matrix. When I try something like oMatrix.Addrow, it adds the rows in the matrix, but it doesn't update or add the data in the table

If I use the default form option for the UDO object, I can se that the related table is feeded in a second form, but I need to have the Master Data and the master data line in only one form.

I hope the explanation of my problem is understandable

Thanks for your help

Sebastien

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2004 at 09:40 AM

    I have the answer, the DBDatasources needs to be cleared :

    oForm.DataSources.DBDataSources.Item("MyUserTable").Clear()

    oMatrix.AddRow(1)

    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.