Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't figure out how to get multiple browse to work 1

Status
Not open for further replies.

Faelcu

MIS
Oct 28, 2002
19
US
I love using the Browse and Query but this is the first time I'm trying to use a MULTIPLE BROWSE. I need to select multiple records and then save those rowids to a temp-table to use them for a later "batch" process. I'm following the only instructions/sample code I can find and I'm lost on this one. Can someone explain how this works and what I have to do, Please?

I'm on Progress 9.1.D on an old character-based application. Any help would be greatly appreciated!!!!

TIA
 
yourBrowse - name of the browse widget you are working with.

yourTable - table that you opened in yourBrowse with OPEN QUERY.


Try this:

define variable nTemp as integer no-undo.

do nTemp = 1 to yourBrowse:num-selected-rows:

if yourBrowse:fetch-selected-row(nTemp) then do:

/* After "yourBrowse:fetch-selected-row(nTemp)" you have corresponding record of yourTable in buffer. */

create ttTable.
assign ttTable.rRowid = rowid(yourTable).

end.

end.




 
Thanks so much for the help. This certainly clears up my confusion around the Progress documentation. Now things make sense and I got my program to work the way I intended.

Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top