wish to place the reports needed in a hidden form variable rather then in a
URL variable. You may find that this increases the clarity of the code,
especially when someone has to come back to the page at a later date.
Andy
-----Original Message-----
From: Mickael [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 4:45 PM
To: CF-Talk
Subject: Best Practices
Hello,
I am in the middle of reworking an app and trying to eliminate many of the
templates that were created by me (in my cut paste, make a new template days
instead of making smarter templates)
What is have in essence are 6 reports that are practically the same the
differences are they run the same queries on different tables, and update them
as well.
Each page is a report is a self posting page that has reports that need to
be checked off by the user as completed.
So now this is what I am trying to do. When the user clicks on the report I
have appended ?Reportname=myreport to the link.
Now I have a case statement that uses #url.reportname# that will set all my
variables for that page. Until now it is fine. The only problem that I am
running into is when I try posting the page to itself to the the update (set
the completed from 0 to 1) of course my reportname variable is non existant.
What would be the most best way to do set up this? When I try to post the
same page of course my URL.ReportName does not exist so my switch statement
does not work.
Any pointers in the right direction would be much appreciated.
Thanks.
Mike
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

