I have to pass a variable whose value I set inside cfscript block in controller
method. Then I call one of the methods with the help of object which updates
the records but to update the records, I need the variable stored in the
controller cfscript block. Please help me how can I do that.
<cfset paymentResult= o_payment.submitPayment()>
<cfset event.setvalue("paymentResult",paymentResult)/>
<cfloop list="#paymentResult#" delimiters="&" index = "param">
<cfscript>
parameter = Left(param,Find('=',param)-1);
if (parameter eq 'RESULT')
evaluate('PFP_' & Left(param,Find('=',param)-1) & " = " &
Right(param,Len(param)-Find('=',param)));
</cfscript>
</cfloop>
I am storing the result code here.
Then I have to use this code in another function which is called inside the
same controller function to update the records but I don't know how to pass
this value. I am calling the update function like this.
<cfset payment = o_payment.actUpdateTransactionInfo()>
Kindly help me with this. Thanks in advance.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310924
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4