Not to sure about what you are doing, but
One will never equal Two, so the filter will always fail

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tim
Lucas
Sent: Wednesday, 21 April 2004 11:34 AM
To: FarCry Developers
Subject: [farcry-dev] GenericAdmin custom filter syntax

I can't get the filters and custom filters working properly when passing

to GenericAdmin.

... and I can't find any sample code in FarCry core.

What i have:

<cfscript>
        stCriteria = StructNew();
        stCritera.customfilter = " and 1=2";
</cfscript>

<farcry:genericAdmin
        permissionType="#stGrid.permissionType#"
        typename="#typename#"
        stGrid="#stGrid#"
        bDisplayCategories="0"
        criteria="#stCriteria#">

This should return 0 results in the generic admin, but it doesn't.
Same goes for normal filters (e.g. stCritera.currentStatus = "approved")

Any pointers?

-- tim

www.toolmantim.com

---
You are currently subscribed to farcry-dev as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004



---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to