Thanks,
Dark Knight.
84 denial reasons listed in row format which gets populated from the database
table of Denial reasons.
Each Denial Reason row will have 12 text input boxes.
I can get the above stuff done. Now the problem is how will I read the data
in these 84 X 12 form elements and enter that data back into a separate table
in the database? Manually, we can do it but I was wondering if there could a
more efficient way to do it.
Thanks,
Dark Knight.
Is there a code or ID associated with each code? I would highly recommend
naming each of the 84 sets based on that code. So if you have code 123, then
you have twelve boxes names based on that (e.g. 123_1, 123_2, etc.)
Then on the processing page, you can parse the form.fieldnames variable. But
this can cause problems if there are other fields in the form which don't
follow the pattern. I usually just rerun the query I used to create the
original list on the form to re-get the list of IDs. Then loop over them and
use Evaluate() to get the values of the form fields.
Hope this makes a little sense...
Processing page:
<cfquery name="myIDs"...></cfquery>
<cfloop query="myIDs">
<cfquery>
UPDATE myTable
SET Reason1 = '#Evaluate("form." & myIDs.ID & "1")#'
WHERE myID = #myIDs.ID#
</cfquery>
</cfloop>
if its just one row use a relational database and a single group of 12 input
boxes.
make one table with the 84 denial reasons, and one table that stores the
responces.
thus you only have to work with 12 boxes at one time which is much easier for
both the developer and the user.
Thanks,
Dark Knight.
Thanks once again,
Dark Knight.