Tim

The purpose of stCriteria (which always defaults to #form#) is to pass
a structure of search criteria that will be treated by the getObjects
method that if you haven't overidden it, lives in
farcry.farcry_core.packages.farcry.genericAdmin.

This is completely undocumented at the moment - but in short you will
want to look at doing the following for you custom type :

*Make sure your custom objectt extends
"farcry.farcry_core.packages.farcry.genericAdmin"

You can then overide farcry.farcry_core.packages.farcry.genericAdmin's 
"getObjects" and "renderSearchFields" methods in your custom object CFC.
 getObjects returns the query that populates the data grid (usually in
response to the criteria from renderSearchFields ) - renderSearchFields
is the method that returns the HTML for the search fields you see above
the grid.

I reccomend taking a good look @
farcry.farcry_core.packages.farcry.genericAdmin to get an idea of whats
going on with these two methods - hopedully that will clear it up :)

Paul

>>> [EMAIL PROTECTED] 4/21/2004 11:34:24 AM >>>
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