I found it on the RBase website control properties document.  Not sure which 
version it was introduced.

The interesting thing is that it doesn't capture the default sorting, only if 
the user has clicked on a header to change it.  So you would need to do the 
following:
SET VAR vCurrentSort TEXT = NULL
GETPROPERTY listview CURRENTSORT "vCurrentSort"
IF vCurrentSort IS NULL OR (SLEN(vCurrentSort)) = 0 THEN
  SET VAR vCurrentSort = "client ASC, cdate ASC"
ENDIF
EDIT   USING claim WHERE &vCWhere ORDER BY &vCurrentSort


The syntax for my "if" looks a little weird.  If it was still in the default 
sorting, the vCurrentSort was not null, however it was blank.  But a = " " 
didn't work to test either, and the length of the variable was 0. 

Karen

 

 

 

-----Original Message-----
From: Dan Goldberg <[email protected]>
To: rbase-l <[email protected]>
Sent: Mon, Aug 29, 2016 2:45 pm
Subject: RE: [RBASE-L] - Re: Can I capture sorting? - found it!



It doesn’t show up in the rdocs drop down for variable list view.
 
Dan Goldberg
 
From: karentellef via RBASE-L [mailto:[email protected]]
Sent: Monday, August 29, 2016 12:43 PM
To: [email protected]
Subject: [RBASE-L] - Re: Can I capture sorting? - found it!
 
Found the getproperty, CURRENTSORT

I just knew it was there somewhere!!

Karen

 

 

 

-----Original Message-----
From: karentellef <[email protected]>
To: rbase-l <[email protected]>
Sent: Mon, Aug 29, 2016 1:58 pm
Subject: Can I capture sorting?

In version 10.  Can I capture the current sort of a List View?  Guess I'm 
looking for a getproperty.   The list view always comes up sorted a certain 
way, and I have a "scroll through all" button which brings up a multi-row edit 
form that should come up in the same order.  Works fine until they click on a 
List View header and change the sorting, and want the "scroll" to do the same 
thing.   I've looked in my notes and I don't see a property for that.    I know 
I can disable sorting and have them do a sort via a button, but I'd rather not 
go that route. 

Thanks!

Karen


-- 
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 
[email protected].
For more options, visit https://groups.google.com/d/optout.

-- 
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].
For more options, visit https://groups.google.com/d/optout.


-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to