Mark,

I am assuming you're using FC5, the following works for earlier
versions and will probably work for FC5 as well

<!--- Override the client side validation for the filter fields. --->
<cfset stFilterMetaData = structNew() />
<cfset stFilterMetaData.showConsumers.ftValidation = "" />
<cfset stFilterMetaData.showRetailers.ftValidation = "" />

<ft:objectAdmin
        title="Testimonials"
        typename="testimonials"
        ColumnList="showConsumers,showRetailers,name"
        SortableColumns="showConsumers,showRetailers,name"
        stFilterMetaData="#stFilterMetaData#"
        lFilterFields="showConsumers,showRetailers,name,testimonial"
        sqlorderby="" />


Chris

On Mar 10, 4:44 pm, Mark Jones <[email protected]> wrote:
> Is there a trick to getting filters to behave w/ boolean data fileds
> on the custom datatype admin pages?
>
> <ft:objectAdmin
>         title="Testimonials"
>         typename="testimonials"
>         ColumnList="showConsumers,showRetailers,name"
>         SortableColumns="showConsumers,showRetailers,name"
>         lFilterFields="showConsumers,showRetailers,name,testimonial"
>         sqlorderby="" />
>
> The show* fileds are boolean and track whether the entry is shown to
> the audience in question.
>
> With the code above, I get a constant filter of "result filtered by:
> consumers & retailers clear filter"
>
> If I edit the filter to uncheck the boxes, the actual filter changes,
> but the message remains.
>
> I get a similar issue with another datatype, except that one's
> bolleans default to false.  Then I get the message "result filtered
> by: & & clear filter" without the capability of clearing the message.
>
> So I just turned off the filters by booleans.  Then I came across a
> datatype that wanted to filter by Creation date.  However, that
> involves a checkbox, so I get "result filtered by: created"
>
> And whenever any filter is in place, hitting "enter" on the filter
> form causes the "Clear Filter" button to be pressed instead of the
> "set filter" button as expected (FF3).
>
> Are there any known solutions to any of the above?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to