>Here you go, someone apparently asked me a long time ago since the content
>of my site is probably a good 5 years old.  Probably a better way to do
>this, but like I said I just keep reusing the same custom tag for it here
>since it works.
>
>http://www.happyhacker.com/WebDev.cfm?Cat=CF&SubCat=Ordering#StartHere
>
>
>>
this code does not work for me. Here is what I did. I copied this function 
function SetFields(lst,lstSave) {
var t;
lstSave.value=""
for (t=0;t<=lst.length-1;t++)
lstSave.value+=String(lst.options[t].value)+",";
if (lstSave.value.length>0)
lstSave.value=lstSave.value.slice(0,-1);
} 
I added onsubmit="SetFields(document.combo_box.requirements);" to my form tag 
I added   <input type="hidden" Name="FieldsSave" id="FieldsSave">
And also added this 
<cfif isDefined("btnsubmit")>
<cfparam name="form.FieldsSave" default="">
                <cfset Order=0>
<cfloop list="#Form.FieldsSave#" index="requirements">
<cfquery name="SetOrder" datasource="HotBanana_Manager">
UPDATE trnAcademicProgramsAndRequirementsMapping
SET SortOrder = #Order#
WHERE reqid = #form.requirements# and degreeid=#form.program#
</cfquery>
<cfset Order = Order + 1>
</cfloop>
</cfif>
However I do not get any errors but nothing get updated


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

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

Reply via email to