Lena, you get the gold star! MAKECLICK puts the highlighted row at the bottom of the window. That's terrific. After the first double-click the next customer is highlighted at the bottom of the selection window and every double click after that is right there. I don't even have to move the mouse cursor.

Thank you!
Albert

On 2016-03-09 12:48 PM, Lena Dammstrom wrote:
Albert,
Maybe using MakeClick will get you where you want to be?

PROPERTY DrivingTableListView ITEMINDEX .vIndexTxt
PROPERTY DrivingTableListView REFRESHLIST "TRUE"

Try adding after the refreshlist:
Property DrivingTableListView MAKECLICK &vIndexTxt

Regards
Lena

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Albert
Sent: Wednesday, March 09, 2016 1:25 PM
To: Lena Dammstrom
Subject: [RBASE-L] - RE: Variable Lookup Listview

Not quite the problem Dan. I can double click or drag to add a customer to the 
tSelectedValues and it is removed from the DrivingTableListView when the PROPERTY ... 
"REFRESHLIST" is executed. The problem is that when that happens, the form 
always returns to the first item in the list. We currently have 109 customers to select 
from and the form displays 18 at a time. If I double click or drag the 25th item in the 
list after paging down, the form does not stay paged down, it returns to the top.

The form works perfectly. It is just the display after the REFRESHLIST is 
executed that I would like to change so that the highlighted item is visible in 
the first 18 rows, rather than paging down and down and down to get to the next 
item.

Albert

On 2016-03-09 11:59 AM, Dan Goldberg wrote:
I believe it has to do with the variable value. The selected row is based on 
the value of the variable that you selected in the properties. You need to get 
the value and put it in the variable. I think that is the problem.

Dan Goldberg

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Albert
Sent: Wednesday, March 09, 2016 10:34 AM
To: Dan Goldberg
Subject: [RBASE-L] - Variable Lookup Listview

I "borrowed" Razzak's Drag and Drop form, version 2, and it is slick. I have 
added some bit buttons to do various report variations when the user selects this and 
that. I would like to be able to stay in the list of Customers (the DrivingTableListView) 
and allow the user to select all of some customers by double clicking multiple times. The 
database has been upgraded to v95(64), but not yet to RBGXE. The database uses double 
quotes. The code for the double click is below. The code works fine and highlights the 
next line: when the Driving Table refreshes, the customer following the customer double 
clicked is selected, as it has moved up one line when it is added to the temporary table 
tSelectedValues. My problem is that the ITEMINDEX does not page down the lengthy list of 
customers. It indeed highlights the customer on the second or third page, but always 
returns to display the list from the top. Has anyone any ideas as to how I can get the 
list view to page down to the ITEMINDEX that is highlighted?

One of the customers has no less than 9 locations, each of which
(correctly) appears in the list view. It would be more convenient to use if one 
could just double click 9 times without having to page down after each 
selection to get to the new highlighted value.

-- On Double-Click Custom EEP
     SET VAR  vIndextxt TEXT = NULL
     GETPROPERTY DrivingTableListView ITEMINDEX "vIndexTxt"
APPEND Customers TO tSelectedValues WHERE CustID = (.vCustID)
     PROPERTY DrivingTableListView ITEMINDEX .vIndexTxt
     PROPERTY DrivingTableListView REFRESHLIST "TRUE"
     PROPERTY SelectedValuesListView REFRESHLIST "TRUE"
     RETURN

All ideas will be seriously considered!

Albert the confused.






Reply via email to