very nice.

I took a snoop around at other forms with process()
and saw that updateApp has it
plus a lot of other functions (processWebtop,processResourceBundle ); but I
can not see where they are called

2008/12/11 Blair McKenzie <[EMAIL PROTECTED]>

> FYI, you can go even further by putting processing in the "process" method
> in the form component (it gets called by ft:processformobjects on all form
> components). The form component can be good place to encapsulate
> functionality. For example I typically put upload-process-import code in
> form components. That way the UI has ft:object and ft:processformobjects,
> and the component has all the business logic.
>
>
> On Thu, Dec 11, 2008 at 3:29 PM, AJ Mercer <[EMAIL PROTECTED]> wrote:
>
>> cool - thanks Blair, this is what I was looking for.
>> So my code now looks like this
>>
>>     <ft:processForm action="Save">
>>         <ft:processformobjects typename="pslCustomPortfolio"
>> r_stProperties="stProperties">
>>              <cfset OK = APPLICATION.cpManager.savePortfolio(stProperties)
>> />
>>         </ft:processformobjects>
>>
>>
>>
>> 2008/12/11 Blair McKenzie <[EMAIL PROTECTED]>
>>
>>> You use stProperties inside the ft:processformobjects. Remember that
>>> ft:processformobjects is a loop, allowing you to edit and process multiple
>>> objects on one page.
>>>
>>>
>>> On Thu, Dec 11, 2008 at 2:09 PM, AJ Mercer <[EMAIL PROTECTED]> wrote:
>>>
>>>> not too sure how to do this
>>>>
>>>> this is throwing an error on the cfdump (Variable STPROPERTIES is
>>>> undefined. )
>>>>     <ft:processForm action="Save">
>>>>         <ft:processformobjects typename="pslCustomPortfolio"
>>>> r_stProperties="stProperties" />
>>>>         <cfdump var="#stProperties#">
>>>>
>>>>
>>>> 2008/12/11 Blair McKenzie <[EMAIL PROTECTED]>
>>>>
>>>>> Another option is to use ft:processformobjects to collect the form
>>>>> data, then pass the stProperties struct into your component.
>>>>>
>>>>>
>>>>> On Thu, Dec 11, 2008 at 1:37 PM, AJ Mercer <[EMAIL PROTECTED]> wrote:
>>>>>
>>>>>> I am doing this outside farcry in my own component
>>>>>> I pass FORM and then cleanse it
>>>>>>
>>>>>>
>>>>>> 2008/12/11 Blair McKenzie <[EMAIL PROTECTED]>
>>>>>>
>>>>>> 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
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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
>>
>>
>>
>
> >
>


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

Reply via email to