Subject | Re: [IBO] Record was not located to delete |
---|---|
Author | Helen Borrie |
Post date | 2004-10-20T00:39:59Z |
At 10:19 PM 19/10/2004 +0000, Jackie wrote:
identify the record. If KeyLinksAutoDefine is true, IBO can usually find
the keylinks itself, provided the primary key is in the dataset and the
query involves only one table.
If the Keylinks are wrong, it can then only seek the record by using all of
the fields.
and also tell us what is the purpose of this:
"When I change some fields of a record...."
What is the purpose of changing fields in a record you are about to delete?
Helen
> I have a DB aware grid showingDelete requires only to be able to find the KeyLinks fields that uniquely
>a bunch of records. When I change some fields of a record in the grid
>and click my delete button, I do the following,
>
>HolDBView->DataController->DataSource->DataSet->Delete();
>
>I get an exception that says "Record was not located to delete.". It
>seems to me the delete requires all fields match.
identify the record. If KeyLinksAutoDefine is true, IBO can usually find
the keylinks itself, provided the primary key is in the dataset and the
query involves only one table.
If the Keylinks are wrong, it can then only seek the record by using all of
the fields.
>Shouldn't IBO just use the PK to locate a record and delete it? What ISend the SQL for the query, the columns that you have assigned as KeyLinks,
>need to do for this problem?
and also tell us what is the purpose of this:
"When I change some fields of a record...."
What is the purpose of changing fields in a record you are about to delete?
Helen