At 03:47 PM 11/25/2013, Richardson, Jeff wrote:
Hello. I understand that I can sort data in an Enhanced DB Grid by simply
clicking on the column title. However, I would like this action to occur
in an EEP. Is there a PROPERTY command that will sort a single column in
an enhanced DB grid? I've been looking, but I don't see it.
If there was such a thing, it should be documented with examples, in
R:Docs 9.5.
Got R:Docs 9.5?
Having said that ...
If you are using the latest "private-beta" of R:BASE eXtreme 9.5, Update 3,
you could use the following PROPERTY command to achieve such cool feature.
Here's how:
-- Syntax
PROPERTY <EnhancedDBGridComponentID> SortAsc '0'
PROPERTY <EnhancedDBGridComponentID> SortDesc '0'
-- Example (Based on RBG9_EnhancDBGrd form included with RRBYW18)
-- To Dynamically Sort (ASC) the first column (Company)
PROPERTY DBGrid_Customers SortAsc '0'
-- To Dynamically Sort (DESC) the first column (Company)
PROPERTY DBGrid_Customers SortDesc '0'
-- To Dynamically Sort (ASC) the second column (City)
PROPERTY DBGrid_Customers SortAsc '1'
-- To Dynamically Sort (DESC) the second column (City)
PROPERTY DBGrid_Customers SortDesc '1'
Alternative, you could also use the following PROPERTY syntax as well.
PROPERTY <EnhancedDBGridComponentID> SortAsc 'columnname'
PROPERTY <EnhancedDBGridComponentID> SortDesc 'columnname'
-- To Dynamically Sort (ASC) the first column (Company)
PROPERTY DBGrid_Customers SortAsc 'Company'
-- To Dynamically Sort (DESC) the first column (Company)
PROPERTY DBGrid_Customers SortDesc 'Company'
-- To Dynamically Sort (ASC) the second column (City)
PROPERTY DBGrid_Customers SortAsc 'City'
-- To Dynamically Sort (DESC) the second column (City)
PROPERTY DBGrid_Customers SortDesc 'City'
That's all there is to it!
Very Best R:egards,
Razzak.
www.rbase.com
www.facebook.com/rbase
--
30+ years of continuous innovation!
15 Years of R:BASE Technologies, Inc. making R:BASE what it is today!
--
--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]
(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body,
place any
text to search for.
================================================