So I'm building a new CFForm and making use of CF8's cfc binding
utilities... I'm building a quick-order form with x (variable) rows.
I need to have an order subtotal calculated and that's where I've hit
my problem... for the individual columns I have something along these
lines:

<cfloop from="1" to="15" index="x">
        <tr>
                <td><cfinput type="Text" tabindex="#TabIndex#" name="SKU#X#"
autosuggest="cfc:quick.asSKU({cfautosuggestvalue})" tooltip="Product
SKU to order" required="Yes" visible="Yes" enabled="Yes"
showautosuggestloadingicon="False" typeahead="No" size="15"
id="SKU#X#"></td>
                <cfset TabIndex = TabIndex + 1>
                <td><cfinput type="Text" tabindex="0" name="QA#X#"
bind="cfc:quick.bindQTY([EMAIL PROTECTED])" width="10" required="No"
visible="Yes" enabled="No" showautosuggestloadingicon="False"
typeahead="No" size="5" notab></td>
                <td><cfinput type="Text" tabindex="0" name="PRICE#X#"
bind="cfc:quick.bindPrice([EMAIL PROTECTED])" width="10" required="No"
visible="Yes" enabled="No" showautosuggestloadingicon="False"
typeahead="No" size="5" notab></td>
                <td><cfinput type="Text" tabindex="#TabIndex#" name="QTY#X#"
width="10" required="Yes" visible="Yes" enabled="No" size="5"></td>
                <cfset TabIndex = TabIndex + 1>
                <td><cfinput type="Text" tabindex="0" name="TOTAL#X#"
bind="cfc:quick.bindTotal([EMAIL PROTECTED],[EMAIL PROTECTED])" width="10"
required="No" visible="Yes" enabled="No"
showautosuggestloadingicon="False" typeahead="No" size="5" notab></td>
        </tr>
</cfloop>

My question is this - is there a way that I can use a bind method to
calculate the order total?

Thanks!
Hatton

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294011
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to