Consultor Eletrônico



Kbase 19075: ADM2 - Deleting Records Affects getQueryPosition() function
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   01/09/1999
ADM2 - Deleting Records Affects getQueryPosition() function

Title: ADM2 - Deleting Records Affects getQueryPosition() function

KnowledgeBase Number: 19075
Creation Date: 01-SEP-99
Modified Date:
This document applies to: Progress 9.0A and 9.0B
Version and Release Number: 9.0B

Summary:

When accessing the data in a SmartDataObject via any of the following
methods you need to be aware that these methods will not correctly
set the QueryPosition attribute (accessed via the getQueryPosition()
function) when you end up deleting all the records in the
SmartDataObject's result set.

These methods incorrectly set the QueryPosition attribute to
"LastRecord" instead of "NoRecordAvailable". This can give you (the
developer) the impression that a row is available when in fact there
is no valid row. If you believe that this situation may happen to
you then you should call the fetchFirst method which will correctly
set the QueryPosition attribute.

- fetchNext
- fetchPrev
- fetchLast