The only way you will be able to do what you are wanting that I can think of is to create a array of structures to hold the data of the paticular view and when they do their modifications then return them to the page with the values of those structures.
Doug ----- Original Message ----- From: "Janine Jakim" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, December 13, 2001 10:12 AM Subject: get back to correct section... > 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> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm 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

