Just so you're aware, this will probably break functionality in ft:processformobjects. The reason prefixes are used is so that ft:processformobjects is able to identify which fields correspond to which objects and automatically aggregate them into stProperties. It does this for all forms in FarCry.
On Thu, Dec 11, 2008 at 12:06 PM, AJ Mercer <[EMAIL PROTECTED]> wrote: > I have used the following to strip out what I need > > <cfloop collection="#ARGUMENTS.stData#" item="formField"> > <cfif FindNoCase(ARGUMENTS.stData.FARCRYFORMPREFIXES, > formField)> > <cfset realField = Trim(Mid(formField, prefixPos, 200)) > /> > <cfset stForm[realField] = ARGUMENTS.stData[formField] > /> > </cfif> > </cfloop> > > 2008/12/10 Tomek Kott <[EMAIL PROTECTED]> > > I think your best bet is to look at the code from ft:object. I think there >> it does the stripping and putting into a struct. You could copy that and put >> it into your own custom tag. >> >> I'm not sure, but I think you can also get back a structure of athe form >> inputs. Again, check the ft:object parameters that can be set. >> >> Tomek >> >> On Wed, Dec 10, 2008 at 2:03 AM, AJ Mercer <[EMAIL PROTECTED]> wrote: >> >>> <ft:object typename="myForm" prefix="" /> >>> does not work >>> >>> is there a tag for stripping the prefix? >>> >>> I would like to end up with a struct that matches the form component >>> property names >>> >>> >>> 2008/12/10 AJ Mercer <[EMAIL PROTECTED]> >>> >>> as in no prefix at all >>>> I will try setting it to blank... >>>> >>>> 2008/12/10 Blair McKenzie <[EMAIL PROTECTED]> >>>> >>>>> In what sense? I think there's a way of setting the prefix for a form, >>>>> but I don't think it can be turned off. >>>>> Blair >>>>> >>>>> >>>>> On Wed, Dec 10, 2008 at 5:45 PM, AJ Mercer <[EMAIL PROTECTED]> wrote: >>>>> >>>>>> is the an option to not use 'FARCRYFORMPREFIXES'? >>>>>> >>>>>> >>>>>> -- >>>>>> AJ Mercer >>>>>> Web Log: http://webonix.net >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> AJ Mercer >>>> Web Log: http://webonix.net >>>> >>>> >>>> Once you come to the realisation that everyone is crazy, >>>> You will never be surprised or disappointed ever again. >>>> AJM 2008 >>>> >>> >>> >>> >>> -- >>> AJ Mercer >>> Web Log: http://webonix.net >>> >>> >>> Once you come to the realisation that everyone is crazy, >>> You will never be surprised or disappointed ever again. >>> AJM 2008 >>> >>> >>> >> >> >> > > > -- > AJ Mercer > Web Log: http://webonix.net > > > Once you come to the realisation that everyone is crazy, > You will never be surprised or disappointed ever again. > AJM 2008 > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
