It's not possible.  Unfortunately the status field is hard-coded into the 
objectAdmin table.  I came across this same problem with a client a few months 
ago.  I spent a few hours trying to rewrite the objectAdmin to allow the status 
field to allow sorting, but it got messy very fast.  After a few hours I gave 
up and instead added a filter option for the status field.

It's not perfect, but the only real solution is to fix it in objectAdmin (and 
the hard-coded status field is referenced in a few different places in that 
file).

Some (not-so-great) workarounds:
1. Add a status filter option
<cfset stFilterMetadata = { status = { ftValidation = "", ftDefault="" } } />

<ft:objectadmin...
  stFilterMetaData="#stFilterMetaData#" />

2. Add a "second" status field that is sortable
<cfset aCustomColumns = [{ title = "Status", sortable = true, property = 
"status" }] />

<ft:objectadmin...
  aCustomColumns="#aCustomColumns#" />

Those can get you working temporarily.  I'd suggest putting in a feature 
request to have the status field itself be sortable.

Hope that helps,

--
Jeff Coughlin

On Dec 21, 2011, at 6:41 PM, James Buckingham wrote:

> Hi Blair,
> 
> Speaking on Neo's part here - basically the user's have asked to be able to 
> order the Webtop listings by the status.
> 
> We've tried simply adding the "status" column into the SortableColumns 
> attribute of objectAdmin but what we're getting back in our columns with 
> something like this:-
> 
> Actions
> Status ( no order option ) 
> Status ( with order option )
> .... etc.
> 
> So by default FarCry is adding the Action and Status columns to the left hand 
> side and then ours - that including this 2nd "Status" column with the asc / 
> desc dropdown options. Ideally we just want a single.
> 
> Looking at the Core "customadmin" dmFile.cfm it looks like you guys have got 
> it working but I can't see in the customadmin file how you've done it.
> 
> What's the magic password to get it working in our Custom Types please :-)
> 
> Cheers,
> James
> 
> -- 
> You received this message cos you are subscribed to "farcry-dev" Google group.
> To post, email: [email protected]
> To unsubscribe, email: [email protected]
> For more options: http://groups.google.com/group/farcry-dev
> --------------------------------
> Follow us on Twitter: http://twitter.com/farcry

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to