PROGRESS moves the selected item to ROW 1

LBaliao

Member
Can anyone help please?

I have a browse that can display 10 rows at a time.

Say I have 100 records, primary field is a seq number 1 to 100. Records in the browse is sorted by seq number ascending.

Say my current selected record is seq number 5, after OPEN QUERY and REPOSITION to seq number 5 record, the highlighted row remains in the same place.

Say my current selected record is seq number 15, after OPEN QUERY and REPOSITION to seq number 15, the program highlights the correct record, moves the scrollbar and puts the highlight record to ROW 1. If I want to see seq numbers 1 to 15, I'd have to move the scrollbar up.

How can I keep the highlighted row from moving to ROW 1? I want it to stay in the same row.

Appreciate all your feedback and solutions.

Thanks,
Liza
 

trx

Member
Use set-repositioned-row to determine which row in viewport should be highlighted row.
Code:
BrHandle:SET-REPOSITIONED-ROW( viRowInViewPort, "ALWAYS").
BrHandle:QUERY:REPOSITION-TO-ROWID(vroTable) NO-ERROR.
BrHandle:REFRESH() NO-ERROR. 
BrHandle:SET-REPOSITIONED-ROW(1, "ALWAYS") NO-ERROR.
 

LBaliao

Member
Thanks for your help trx. I'm able to reposition the selected item to the middle of the browse with the code you provided.

Liza
 
Top