Page 1 of 1

dcbrowsecol

Posted: Thu Jun 07, 2012 7:04 am
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

Re: dcbrowsecol

Posted: Thu Jun 07, 2012 8:01 am
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?

Re: dcbrowsecol

Posted: Thu Jun 07, 2012 8:49 am
by rdonnay
Look at the function DC_BrowseSort().

Re: dcbrowsecol

Posted: Thu Jun 07, 2012 8:09 pm
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

Re: dcbrowsecol

Posted: Fri Jun 08, 2012 2:39 pm
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