I'm trying to pass the following 9 data values from an update.cfm to an action page:
8.67, B, 25.00, B, B, 96.00, B, B, B
(B is an indicator for a check box which, when selected, bypasses the records and should produce a value of 0)
However, a check of my ouptput returns:
8.67,25.00,96.00
.....so it is bypassing the appropriate records but instead of putting a value of 0 in the field, it leaves it blank. Without this, it will not update the database correctly. Any thoughts?
My update.cfm input fields are as follows:
<input type="checkbox" name="BypassMthCheck_list" VALUE="#RowIndex#" CHECKED>
<CFELSE>
<input type="checkbox" name="BypassMthCheck_list" VALUE="#RowIndex
</CFIF>
<INPUT TYPE="text" NAME="actl_perf_amt_list" SIZE="10" MAXLENGTH="10" VALUE="#perfArray[RowIndex][2]>
And the action is:
<CFTRANSACTION>
<CFLOOP Index="ListRead"
From ="1" To="#FormrecCount#">
<CFIF NOT parameterExists (BypassMthCheck)>
<CFSET ignore_month = "N">
<CFSET msur_actl_perf_amt = #ListGetAt(form.actl_perf_amt, ListRead, ","
#>
<CFELSEIF ListContains(BypassMthCheck, ListRead, ","
IS 0>
<CFSET ignore_month = "N">
<CFSET msur_actl_perf_amt = #ListGetAt(form.actl_perf_amt, ListRead, ","
#>
<CFELSE>
<CFSET ignore_month = "Y">
<CFSET msur_actl_perf_amt = 0>
</CFIF>
WHAT AM I MISSING!!
Donna Hodgson
Systems Analyst
8.67, B, 25.00, B, B, 96.00, B, B, B
(B is an indicator for a check box which, when selected, bypasses the records and should produce a value of 0)
However, a check of my ouptput returns:
8.67,25.00,96.00
.....so it is bypassing the appropriate records but instead of putting a value of 0 in the field, it leaves it blank. Without this, it will not update the database correctly. Any thoughts?
My update.cfm input fields are as follows:
<input type="checkbox" name="BypassMthCheck_list" VALUE="#RowIndex#" CHECKED>
<CFELSE>
<input type="checkbox" name="BypassMthCheck_list" VALUE="#RowIndex
</CFIF>
<INPUT TYPE="text" NAME="actl_perf_amt_list" SIZE="10" MAXLENGTH="10" VALUE="#perfArray[RowIndex][2]>
And the action is:
<CFTRANSACTION>
<CFLOOP Index="ListRead"
From ="1" To="#FormrecCount#">
<CFIF NOT parameterExists (BypassMthCheck)>
<CFSET ignore_month = "N">
<CFSET msur_actl_perf_amt = #ListGetAt(form.actl_perf_amt, ListRead, ","

<CFELSEIF ListContains(BypassMthCheck, ListRead, ","

<CFSET ignore_month = "N">
<CFSET msur_actl_perf_amt = #ListGetAt(form.actl_perf_amt, ListRead, ","

<CFELSE>
<CFSET ignore_month = "Y">
<CFSET msur_actl_perf_amt = 0>
</CFIF>
WHAT AM I MISSING!!
Donna Hodgson
Systems Analyst