Yeah, those are the columns. I have the general idea in my head, but I usually have to check the docs for details myself.
Re the library options, I think the reason there's so little documentation is because they're for edge cases that even we don't run into a whole lot. The only thing I can suggest is 1) add some comments to the docs saying what is lacking and what, specifically, you need, and 2) have a around in /farcry/core/packages/formtools/array.cfc. If it looks like it just can't do what you need, you can extend the formtool in your own project (just like types and rules) and override the edit method. A quick look suggests that ftLibraryData behaves much the same way as ftListData, except it should contain objectid and label. If ftLibraryData isn't specified the formtool will try to call the getLibraryData method on the joined content type. The username should be in session.dmSec.username. Not sure if that's the right variable, you should use the scope dump in admin to check. Blair On Dec 22, 2007 12:42 AM, Jaci <[EMAIL PROTECTED]> wrote: > > Yeah learning curve may be a bit of an understatement in my case. > I've not dealt with cfc's much so I'm way out of my comfort zone. > > I read the 4.0 documentation on list (http://docs.farcrycms.org/ > display/FCDEV40/list) and it said something about being able to pass > it a query with value,name: > > ftListData > ... > OR a query containing the columns value & name. > > Example: > queryNew("value,name") > > It sounds like you've worked with this field type alot. Is this not > truly available... > > Anyway, thanks again for the continued help. I was looking at the > library stuff but there's so little documentation and even fewer > examples. I really like the formtools and for basic form extension > it's so much easier than the plps. I just need to get used to how they > work and advice from people like you is absolutely invaluable. > > On Dec 20, 4:15pm, "Blair McKenzie" <[EMAIL PROTECTED]> wrote: > > 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 -- 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 -~----------~----~----~----~------~----~------~--~---
