DELETE-RESULT-LIST-ENTRY( ) method
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Deletes the current row of a query's result list.
Return type: LOGICAL
Applies to: BROWSE widget, Query object handle
Syntax
|
For the browse, DELETE-RESULT-LIST-ENTRY( ) solves the
following problem: Suppose you create a browse with a primary table and a secondary table,
and in the primary table, the key to the secondary table changes. The AVM never displays the
new secondary table because the result list entry contains the rowid of the original
secondary table.
When you use DELETE-RESULT-LIST-ENTRY( ) together with
CREATE-RESULT-LIST-ENTRY( ), you can update the result list entry and
display the modified row without having to reopen the query.
For example, suppose you create a browse with
customer.name, customer.salesrep, and
salesrep.repname (from the Sports2020 database). Then, in one record of
the browse, you change customer.salesrep from "bbb" to
"dkp".
Without using DELETE-RESULT-LIST-ENTRY( ), the secondary
record remains "bbb" until the query is reopened.
The following code fragment uses
DELETE-RESULT-LIST-ENTRY( ) and
CREATE-RESULT-LIST-ENTRY( ) to display the modified secondary record:
|
DELETE-RESULT-LIST-ENTRY() method cannot be
used together with other assignments in a single ASSIGN statement.