There is a learning curve ;)

The ftListData attribute has just the name of method. The formtool itself
makes sure the right items are selected.

If you need more input into the list that gets returned (i.e. with
arguments) you will probably need to use an array with the library
functionality. I'm not really familiar with that myself so I'll have to ask
around to get a bit more detail.

The gist of it is that all the ftLibrary attributes (of the array formtool)
allow you to have total control over the data that gets fed into the library
window. If the custom table is a content type this will be significantly
easier, even if it's 'invisible' and not editable via the webtop.

Blair

On Dec 21, 2007 6:51 AM, Jaci <[EMAIL PROTECTED]> wrote:

>
> I've been looking at the list type.  But I'm getting confused on the
> execution.
>
> I write a custom query directly in the extended dmEvent.cfc? Right?
> Let's call it getNodePerm
>
> then I put this in my dmEvent.cfc
>
> <cfproperty
>  ftSeq="9"
>  ftFieldset="Event Overview"
>  name="page"
>  type="string"
>  required="true"
>  default=""
>  ftLabel="Associated Page"
>  ftType="list"
>  ftListData="getNodePerm(nodeid,nodename)" />
>
> Is this right?  I'm afraid to try it and mess up the database.
>
> Second issue is in order to build the custom query I need to know the
> userID of the logged in user.  Is this in a session variable somewhere
> that I can access?
>
> If I solve those problems I'm in the clear.
>
> I'm very ready to beat my head against a different wall :-)
>
>
>
> On Dec 20, 2:26 pm, "Blair McKenzie" <[EMAIL PROTECTED]> wrote:
> > For formtool metadata use:
> > ftType="list"
> > ftListData="getList"
> >
> > In your type add a getList function (no parameters). The function can
> return
> > either a list in the form value:label,value:label or a query with "data"
> and
> > "label" colums (not certain about that one but pretty sure - good for
> > data/labels with commas and colons)
> >
> > Blair
> >
> > On Dec 21, 2007 3:32 AM, Jaci <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> > > How do I do this?- Hide quoted text -
> >
> > - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
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