Kbase P8053: Sending output to a file only shows the last row of a browse
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  25/11/2003 |
|
Status: Unverified
SYMPTOM(s):
Sending output to a file only shows the last row of a browse widget
The browser is not scrollable
The PUT statement works fine and all rows can be seen in the file
CAUSE:
DOWN is not being used
FIX:
DOWN. must be specified in order to write all rows to the file.
i.e.
DEFINE QUERY brItem FOR ITEM
FIELDS (ITEM.itemnum ITEM.itemname ITEM.catdescription).
OPEN QUERY brItem FOR EACH ITEM NO-LOCK.
OUTPUT TO d:\wrk91d\output.txt.
GET FIRST brItem.
DO WHILE QUERY-OFF-END("brItem") = FALSE:
/* The PUT accomplishes the same */
/* PUT ITEM.itemnum ITEM.itemname ITEM.catdescription. */
DISPLAY ITEM.itemnum ITEM.itemname ITEM.catdescription WITH USE-TEXT
STREAM-IO.
DOWN.
GET NEXT brItem.
END.
OUTPUT CLOSE.