You can override the edit UI of a formtool by putting a function called ftEditYourPropertyName in the content type component. It will be passed the same arguments as a formtool edit function. In this function you can refer to arguments.stObject.accountManager to generate the data that you output in the list. FarCry will take care of calling this function with the new value via ajax everytime the watched field changes.
In this case I'd say the easiest approach would be: - set up account as a list property - add ftEditAccount to the content type -- override arguments.stMetadata.ftList value depending on arguments.stObject.accountManager (should account for empty-string and isn't-in-struct) -- return application.formtools.list.oFactory.edit(arguments=argumentCollection) Blair On Sun, Mar 6, 2011 at 8:17 PM, West <[email protected]> wrote: > Hi, > > I have two properties in my content type. One is called > "accountManager", the other is called "account". > > When a user chooses a different account manager from the drop down, I > want the 2nd drop down (account) to change. > > Below are the two properties I'm working with. > > <!--- Account Manager ---> > > <cfproperty > ftseq="1" > name="accountManager" > ftfieldset="General Information" > ftwizardStep="Step 1" > type="string" > hint="Account Manager" > required="no" > default="" > ftlabel="Account Manager" > ftType="list" > ftList=":Choose Manager,John Smith,Richard Pickens,Bob Wright" > ftvalidation="required" > /> > > > <!---Account---> > <cfproperty > ftseq="2" > ftfieldset="General Information" > ftwizardStep="Step 1" > name="account" > type="string" > required="no" > default="" > ftlabel="Account" > ftWatch="accountManager" > > /> > > In this link, it suggests creating some edit() function basically. > > https://farcry.jira.com/wiki/display/FCDEV50/ftWatch+Example > > Questions: > > 1. If I need to create an edit() where do I do this at? Within my > content type I assume? > > 2. When, how, does this edit() get called? > > Regards, > > -West > > -- > You received this message cos you are subscribed to "farcry-dev" Google > group. > To post, email: [email protected] > To unsubscribe, email: [email protected] > For more options: http://groups.google.com/group/farcry-dev > -------------------------------- > Follow us on Twitter: http://twitter.com/farcry -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
