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

Delete Row issue

Hi again,

I have some questions with deleting master data line rows in an UDO form.

<b>A)</b>

Basicly this is the situation:

<b>Step 1 -</b> While adding a new master record, I give an auto value to the main record and add some data lines in a matrix, e.g 4 rows.

<b>Step 2 -</b> I delete 2 of these rows before hitting the "Add" button on the form.

But after adding the main record, I check it and see 2 rows with correct values and also <u>previously deleted 2 rows with empty values</u>.

Why ?

(<i>In my opinion, before clicking the Add button, LineId isn't created and associated to a row, cos I show that field for each row in my matrix and it doesn't have any value before adding or updating the main record.</i> )

<b>B)</b>

When deleting rows that have LineIDs <b>in an UDO FORM</b>, should these steps followed for deleting these records and updating the matrix ?

<b>1.</b> Catch the Code and LineIds to be deleted in an array.

<b>2.</b> After clicking update, execute a delete query for these array elements in db and delete related lines.

<b>3.</b> Reload matrix (oMatrix.LoadFromDataSource)

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Aug 08, 2005 at 07:33 AM

    Hi,

    Can you please the code where you add/delete the rows?

    I cannot see the problem only with the explanation, maybe the code will help to understand.

    Regards

    Trinidad.

    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.