... I usually just sit back and watch these threads so as to learn new
things, but only because I've literally just finished a similar task
do I feel compelled to chime in....
I have a 2 page form that a user can access from 5 different routes
and all are based on the date (I center on today's date, for
perspective).
My url var is named orderDate. So as to keep my forms dynamic, I
appended "currentDay", "prevDay", "nextDay", "history" and "future" to
the calling urls (www.myurl.com?
action=order.myAction&orderDate=currentDay) simply deriving the value
of orderDate with some logic and dateAdd(). I passed the value along
using a hidden field and then finally in the controller I did a <cfset
arguments
.event.setValue("orderDate","#arguments.event.getValue('orderDate')#")/
>.
The result page url is something like www.myurl.com?
action=order.myActionReturn&orderDate=currentDay (or whatever the
orderDate var was set to based on what date the user originally
clicked on). My code sees viewstate.getValue("orderDate") and goes
about it's business.
This makes sense to my use case and solves the problems I was facing
with where to land the user after they submitted the form; essentially
all I did was set the navigation at the beginning of the process,
carry it through the form, then through to the MG framework so that it
could be referenced on the way out.
HTH, and I'd also like to see how others have done this - always
learning!
Rich
On Oct 26, 2009, at 1:26 PM, Al wrote:
>
> I have a simple form that a user can get to from multiple routes. I'd
> like to be able to send them back to their origin once the form
> completes processing. My ideas so far seem awfully klugey.
>
> How have others solved this sort of thing in the past? (I am using
> Model Glue 2.)
> >
Rich
Rich Leach
Advanced Certified Adobe ColdFusion Developer
[email protected]
--~--~---------~--~----~------------~-------~--~----~
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
-~----------~----~----~----~------~----~------~--~---