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.
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.