Creates an entry in the result list for the current row. Use the CREATE-RESULT-LIST-ENTRY method in conjunction with new browse rows or new query rows to synchronize the data with the query.

Return type: LOGICAL

Applies to: BROWSE widget, Query object handle

Syntax

CREATE-RESULT-LIST-ENTRY ( )

For browses, this method should be used with a ROW-LEAVE trigger when the NEW-ROW attribute is TRUE. For example, if the user adds a row to an updateable browse, you can use this method to create an entry for the new row in the result list.

For a Query object handle, the current position of the query is used to insert the new result entry. Depending on the position, the new entry is added:
  • after the current row
  • as the first row if the query is opened but not yet positioned
  • as the last row when the query is OFF-END
To ensure that the query and buffers are positioned correctly, you can do a FIND on them. The buffers need to be the actual buffers used in the query and not a different buffer on the same table.
Note: The CREATE-RESULT-LIST-ENTRY() method cannot be used together with other assignments in a single ASSIGN statement.