Nice, thx for the info. will help me out on handhelds!

Dan Goldberg

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of A. 
Razzak Memon
Sent: Wednesday, October 14, 2020 6:27 AM
To: [email protected]
Subject: Re: [RBASE-L] - navigation in variable lookup list view

Dan,

Michael Byerley must be reading my mind when I was preparing this demo for you. 
:)

Technically, you can use the GETPROPERTY ITEMINDEX to find the current position 
of selected row in the Variable Lookup ListView and then use the MAKECLICK 'n' 
to select the row (Up or Down).

Here's how ...

01. Focus on the Variable Lookup List View and select the first row as On After 
Start EEP.
     -- Example
     -- On After Start EEP
     PROPERTY LV_Customers SET_FOCUS 'TRUE'
     PROPERTY LV_Customers MAKECLICK '0'
     RETURN

02. Define two Buttons on the form, such as [ Up ] and [ Down ] with the On 
Click EEPs as follows:
     Button [ Up ] - On Click EEP
     -- Example
     GETPROPERTY LV_Customers ITEMINDEX 'vItemIndex'
     SET VAR vMakeClick = (INT(.vItemIndex)-1)
     PROPERTY LV_Customers MAKECLICK .vMakeClick
     RETURN

     Button [ Down ] - On Click EEP
     -- Example
     GETPROPERTY LV_Customers ITEMINDEX 'vItemIndex'
     SET VAR vMakeClick = (INT(.vItemIndex)+1)
     PROPERTY LV_Customers MAKECLICK .vMakeClick
     RETURN

That's all there is to it!

Load the attached form in the sample RRBYW20 database that illustrates the use 
of such cool feature.

Database.: RRBYW20
Form Name: VarLookupListView_Select_Up_Down

Have fun!

Very Best R:egards,

Razzak


At 04:14 PM 10/13/2020, Dan Goldberg wrote:

>I want to put buttons to navigate up and down rows in a variable lookup 
>list view. I checked the properties and so not seen one.
>
>Has anybody done this?
>
>TIA
>
>Dan Goldberg



--
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rbase-l/0LjHGD-1juAXU28Z5-00dXpw%40mrelay.perfora.net.

-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rbase-l/2E4830CEC16615458329D3D83342F8D0014E6296BD%40EXCHANGE10.

Reply via email to