dcbrowsecol

This forum is for eXpress++ general support.
Post Reply
Message
Author
omni
Posts: 531
Joined: Thu Jan 28, 2010 9:34 am

dcbrowsecol

#1 Post by omni »

Roger,

I may have lost my notes on this, but on the dc_browsecol, sort option, how do you make the default order red so the user knows when opening it initially what the order is? In mine, it only changes when right clicked.

Thanks

Fred

reganc
Posts: 257
Joined: Thu Jan 28, 2010 3:08 am
Location: Hersham, Surrey, UK
Contact:

Re: dcbrowsecol

#2 Post by reganc »

omni wrote:Roger,

I may have lost my notes on this, but on the dc_browsecol, sort option, how do you make the default order red so the user knows when opening it initially what the order is? In mine, it only changes when right clicked.

Thanks

Fred
Don't you just have to put the DEFAULT clause after the SORT clause on the column that is the default?
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: dcbrowsecol

#3 Post by rdonnay »

Look at the function DC_BrowseSort().
The eXpress train is coming - and it has more cars.

User avatar
RDalzell
Posts: 205
Joined: Thu Jan 28, 2010 6:57 am
Location: Alsip, Illinois USA

Re: dcbrowsecol

#4 Post by RDalzell »

Add the following to your DCBROWSE EVAL clause,

Code: Select all

  EVAL { || PostAppEvent(xbeM_RbDown,{0,0},,oBrowse:getColumn(1):heading) }
where :getColumn(x) = your desired sort browse column.

Rick

omni
Posts: 531
Joined: Thu Jan 28, 2010 9:34 am

Re: dcbrowsecol

#5 Post by omni »

I could not find anything relating to the DEFAULT option for the red in any docs, but that worked perfectly for my dc_browsecol and did what I wanted.

thanks

Post Reply