scottobear: (Default)
[personal profile] scottobear

The final working code

<cfloop list="#FORM.fieldnames#" index="c" delimiters=",">
<cfif listfindnocase("ORDER",listfirst(c,"_"),",")>
<cfset item = "##" & "FORM." & c & "##">
    <cfquery name="reorder" datasource="guidance">
    UPDATE fed_lands_doctype
    SET type_order = <cfqueryparam value="#evaluate(item)#" cfsqltype="cf_sql_numeric">
    WHERE type_id = #listlast(c,"_")#
    </cfquery> 
</cfif>   
</cfloop>

Originally published at The Scotto Grotto. You can comment here or there.

Profile

scottobear: (Default)
scott von berg

April 2017

S M T W T F S
       1
2 345678
9 10 11 12 13 14 15
16 1718 19 20 21 22
23 2425 26 2728 29
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 25th, 2026 08:16 pm
Powered by Dreamwidth Studios