Going a bit mad! I should know how to do this but my brain is not working 
today....

when the form below is submitted if the checkbox is checked I want to update 
the option on the valueId (which is a hidden field) and keep looping all the 
results only updating option have is ticked. however once submitted how will I 
know what checkbox ticked corresponded with what valueId?


<cfoutput query="rc.option" group="name">
  <tr class="tableBG2">
    <td class="borderleft">&nbsp;</td>
    <td><b>#rc.option.name#</b></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  
 <cfoutput>
 <cfset current = 
storeService.getCurrentOptions(prodID=#rc.ProdcutBean.getprodId()#,valueID=#rc.option.valueID#)>
<!--- <cfdump var="#current#">--->
  <tr>
    <td class="borderleft">&nbsp; <input type="checkbox" <cfif current.idexists 
eq 1> checked="checked" </cfif> /></td>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;#rc.option.value#</td>
    <td>+ &pound; <input value="#NumberFormat(current.optionPrice,99.99)#" 
type="text" name="optionPrice" size="3" /> extra</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <input type="hidden" value="valueId" name="#rc.option.valueId#" />
 </cfoutput>  
  
  
</cfoutput> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326630
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