Answered How to access browse data

Cringer

ProgressTalk.com Moderator
Staff member
Progress 11.2, Win 7.

I'm having a serious senior moment.I'm populating a browse's data using a separate procedure. I pass it the data I want to populate it with and the browse handle. That way I can reuse the code across my application. The trouble is, I'm having a mental block in how to access the actual data of the row I've got selected in the .w. I've added the code for populating the browse below.

Code:
CREATE QUERY lv-Query. 
lv-Query:SET-BUFFERS(lv-DefaultBufferHandle).

lv-QueryString = "FOR EACH " + lv-TTHandle:NAME. 

lv-Query:QUERY-PREPARE(lv-QueryString).


ASSIGN
  ip-BrowseHandle:QUERY = lv-Query.
  
FOR EACH tt-Columns:
  tt-Columns.ColumnHandle = ip-BrowseHandle:ADD-LIKE-COLUMN(lv-TTHandle:NAME + "." + tt-Columns.ColumnName).
END. 
  
lv-Query:QUERY-OPEN.
 

GregTomkins

Active Member
It's been a while and our code is structured quite differently, but isn't the selected row always in lv-DefaultBufferHandle?
 

Cringer

ProgressTalk.com Moderator
Staff member
That's an interesting point, Greg. I will have a play with that. And RHD - that's exactly what I was after.
 
Top