I have a page that allows the user to choose how they want to view the
information (ie: by subject/by homeroom teacher/user defined) 
So they pull up a student by any of these views and I want them to be able
to add/update their grades and return to the same view they were at.  This
includes not only the view (by subject/homerrom/etc) but also the student
and their grades for the chosen subject.
I want to do it the most efficient way to achieve this and I'm not sure
which way to do it.

Currently on the update page I already separate cflocation scheme that
allows the user to see the student info with the  chosen subject.  Now I
need to add the view part of it...
ie:
<CFSWITCH EXPRESSION="#SubjectType#">
<!---Return to Reading page--->
<CFCASE VALUE="1"> 
<CFLOCATION URL="Index.cfm?fa=UpdateR&ID=#ID#">
</CFCASE>
<!---return to Word study page---->
<CFCASE VALUE="12">
<CFLOCATION URL="Index.cfm?fa=UpdateWS&ID=#ID">
</CFCASE>

there's one of these for each subject + grade (30 some in all)
I'm wondering how to handle this?
I think the worse option would be making separate update pages for each
view.  I've also thought about encasing the cfcase statements with CFIF
ie:
<CFIF view EQ SortByHomeroom>
<CFCASE>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to