Question
Dynamic Column output
I have been struggling with something that I am not sure that
I can do. I have a database table with 84 Columns. The rows
represent projects that are constantly being added and updated.
Each column represents a weekending date with the headings of
W1(being week 1), W2(being week 2), W84(being week 84), ...etc.
Each product has various durations so not all columns are
populated. Some may only have a duration of a couple of weeks. I
have a form that I want to use to update these columns. Below I
have given an example of what I am trying to do. Obviously the
Value attribute will not work but you can get the idea of what i am
trying to accomplish. The weekday variable changes in an index
loop.
<cfset weekday = 1>
<td align="right" width="70">
<CFINPUT TYPE="Text"
NAME="W#Weekday#"
SIZE="5"
validate="float"
value="#W#Weekday##"
MAXLENGTH="10">
</td>
any ideas?
<cfset weekday = 1>
<td align="right" width="70">
<CFINPUT TYPE="Text"
NAME="W#Weekday#"
SIZE="5"
validate="float"
value="#W#Weekday##"
MAXLENGTH="10">
</td>
any ideas?
