Could an if then else statement help?

In the listview click eep add some code like this.

 SET VAR fActivateLstVwClick TEXT

 IF fActivateLstVwClick = 'N' THEN
   SET VAR fActivateLstVwClick = 'Y'
  ELSE
   PROPERTY RBASE_FORM_ACTION ListViewClick ''
 ENDIF

Move the current code in the list view to ListViewClick and before the 
refreshlist command set fActivateLstVwClick to 'N'.
________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jan johansen
Posted At: Thursday, January 17, 2008 2:10 PM
Posted To: RB7-L
Conversation: [RBASE-L] - Re: Variable List View
Subject: [RBASE-L] - Re: Variable List View


Charles,

Just got done trying that.  Problem is that all my code is in the click eep so 
MAKECLICK fires the click eep. Still experimenting with the double-click eep 
but that doesn't seem to make any difference.

Jan




        -----Original Message-----
        From: Charles Parks <[EMAIL PROTECTED]>
        To: [email protected] (RBASE-L Mailing List)
        Date: Thu, 17 Jan 2008 14:00:20 -0600
        Subject: [RBASE-L] - Re: Variable List View


        Have you tried something like:

        GETPROPERTY <VarLisVwCompID> Itemindex 'vIndex'
        property <VarLisVwCompID> makeclick .vIndex

        ________________________________

        From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jan 
johansen
        Posted At: Thursday, January 17, 2008 1:47 PM
        Posted To: RB7-L
        Conversation: [RBASE-L] - Re: Variable List View
        Subject: [RBASE-L] - Re: Variable List View


        Larry,

        I have been utilizing your approach.
        The problem I am having is let's say the item I selected
        is at row 40 but the listsize is only 25 so the scroll bar
        is activated. I can set the variable to the next record
        but when I issue the REFRESHLIST I am taken to the
        TOP of the list even though I have the next row selected.

        Jan




                -----Original Message-----
                From: Lawrence Lustig <[EMAIL PROTECTED]>
                To: [email protected] (RBASE-L Mailing List)
                Date: Thu, 17 Jan 2008 11:05:53 -0800 (PST)
                Subject: [RBASE-L] - Re: Variable List View


                <<
                Using a variable listview with images. This listview looks at a 
temporary table to select
                paid invoices. My problem that I am having is that when I issue 
a REFRESHLIST
                (which is required due to the images) I am taken to the top of 
the list which is undesireble.
                Trying to figure out a way to return to the last position but 
am not getting the syntax
                right. Client unhappy.
                >>

                You need to do the following (you probably know most of this):

                1. Make sure the temporary table has a primary or unique key 
column (doesn't have to be declared, but the values must be unique).

                2. Make sure a variable is defined in the form of the matching 
type.

                3. Assign the variable to the list view on the property sheet.

                4. During the process that refreshes the list view MAKE SURE 
THE VARIABLE IS NOT CLEARED and that its value is not changed.

                If you do those things, and the new table (that the refresh is 
based on) still contains the record with the key value that was selected before 
the refresh, then the same record will be selected.  If the record is no longer 
in the table the variable will continue to the previously selected key value 
but no record will be selected.

                --
                Larry


Reply via email to