Where do you need to place the method in the type? I get an error when
i add it, only when i add it under the latest cfproperty and above the
closing </cfcomponent> i get no error, but then the values aren't
retrieved by the cfproperty that lies above....



On Nov 30, 1:51 am, Marco van den Oever <[EMAIL PROTECTED]>
wrote:
> Yes that helps a lot, thanks
>
> On Nov 30, 12:13 am, modius <[EMAIL PROTECTED]> wrote:
>
> > From the docs:
> > "Method call that must return a string in the same variable value pair
> > format as the ftlist attribute OR a query containing the columns value
> > & name. Method gets passed the objectid of the currently edited object
> > as an argument."
>
> > If you want to use the "method" option you need to create a function
> > in your content type that returns a query in exactly this format:
> > queryNew("value,name")
>
> > Alternatively you can return a formatted string in either of these
> > formats:
> > apple,orange,kiwi
> > APP:apple,ORA:orange,KIW:kiwi
>
> > A method might look something like:
> > <cffunction name="getDepartments" access="public" output="false"
> > returntype="query">
> >         <cfset var q = queryNew("value,name") />
>
> >         <cfquery datasource="#application.dsn#" name="q">
> >         SELECT departmentid AS value, departmentname AS name
> >         FROM departments
> >         ORDER BY departmentname
> >         </cfquery>
>
> >         <cfreturn q />
> > </cffunction>
>
> > Hope that helps,
>
> > geoffhttp://www.daemon.com.au/
>
> > On Nov 30, 6:37 am, Marco van den Oever <[EMAIL PROTECTED]>
> > wrote:
>
> > > updated it to:
>
> > > <cfproperty
> > >  ftSeq="15"
> > >  ftFieldset="General Details"
> > >  name="department"
> > >  type="string"
> > >  hint="Department."
> > >  required="true"
> > >  default=""
> > >  ftLabel="Department"
> > >  ftType="list"
> > >  ftRenderType="dropdown"
> > >  ftListData="name"
> > >  ftListDataTypename="departments" />
>
> > > Now i get:
>
> > > Ensure that the method is defined, and that it is spelled correctly.
>
> > > The method name was not found in component C:\Inetpub\wwwroot\farcry
> > > \plugins\wsoFarcryTickets\packages\types\departments.cfc.
>
> > > so what do i have to do?
--~--~---------~--~----~------------~-------~--~----~
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