You will also want to be certain you have declared a variable beforehand and the control points to the variable.
> -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of A. > Razzak Memon > Sent: Friday, January 23, 2015 9:49 AM > To: RBASE-L Mailing List > Subject: [RBASE-L] - Re: Var lookup list view > > At 09:20 AM 1/23/2015, Jim Belisle wrote: > > >I always run into this problem when adding a variable lookup list > view. > >I know it is a simple solution but I cannot ever figure it out. > > RTFM. In this particular case, read the R:Docs 9.5. > > > >How do I make it so I can click on a different row other than the > first > >row shown? > >When I click on anything other than the first row, the cursor pops > back > >to row one. > > Here's how ... > > Use the TOPITEM ((Last Selected Item)) property of the > GETPROPERTY/PROPERTY commands to always retain the selected row within > the Variable Lookup ListView windows. > > TOPITEM captures the TOPITEM value for the last selected row (item) in > the list. > > TOPITEM is used to determine the first item in the list view that the > user can see. > > TOPITEM reflects how far the list view has been scrolled. > > A very simple and basic example to understand the use of TOPITEM in > Variable Lookup List View control: > > -- Refresh list and retain position using PROPERTY TOPITEM (Last > Selected Item) > -- Custom EEP to refresh list as well as to remember the Top Item > CLEAR VARIABLE vTopItem > SET VAR vTopItem TEXT = NULL > GETPROPERTY ListView TOPITEM vTopItem > PROPERTY ListView REFRESHLIST 'TRUE' > PROPERTY ListView TOPITEM .vTopItem > CLEAR VARIABLE vTopItem > RETURN > > Both 2014 and 2015 R:BASE eXtreme 9.5 Super Advanced Training Sample > Applications include a sample form to illustrate the use of such > feature in R:BASE eXtreme 9.5. > > Tab .....: Sample Applications (II) > Item ....: Using TOPITEM Property > Form Name: PropertyTopItem > > Very Best R:egards, > > Razzak. > > www.rbase.com > www.facebook.com/rbase > -- > 32 years of continuous innovation! > 17 Years of R:BASE Technologies, Inc. making R:BASE what it is today! > --

