That's actually very similar to where I started. I've been toying with
the idea of SES urls however and that's caused me to go back and make
sure I'm creating all urls with event.linkto.  Thus the issue.  Thanks
for the idea though!

On Aug 18, 12:43 pm, Dan Wilson <[email protected]> wrote:
> Irv,
>
> If this were me, I'd just append the value, rather than forcing all the link
> assembly through linkTo()
>
> Like so:
>
> <cfset thisCalMonthStart= event.getValue( "thisCalMonth" ) />
> <cfset formattedPreviousDate = DateFormat(DateAdd("M", -1, thisCalMonthStart),
> "YYYY-MM-DD") />
> <cfset formattedNextDate = DateFormat(DateAdd("M", 1, thisCalMonthStart),
> "YYYY-MM-DD") />
> <cfset prevMonthLink =
> '#event.linkTo("pcalendar")#&thisCalMonth=#formattedPreviousDate #' />
> <cfset nextMonthLink =
> '#event.linkTo("pcalendar")#&thisCalMonth=#formattedNextDate #' />
>
>
>
>
>
> On Wed, Aug 18, 2010 at 2:51 PM, Irv Wilson <[email protected]> wrote:
> > Actually was kind of simple (I think).  The problem I'm having with
> > the below is I think of event.setValue as something sort of permanent
> > that I'm sending back to the view instead of a "throw away" to make
> > the two links...
>
> > <cfset event.setValue(thisCalMonth, DateFormat(DateAdd("M", -1,
> > thisCalMonthStart), "YYYY-MM-DD") />
> > <cfset prevmonthlink = event.linkTo( "pcalendar", thisCalMonth />
>
> > <cfset event.setValue(thisCalMonth, DateFormat(DateAdd("M", 1,
> > thisCalMonthStart), "YYYY-MM-DD") />
> > <cfset nextmonthlink = event.linkTo( "pcalendar", thisCalMonth />
>
> > --
> > 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]<model-glue%2bunsubscr...@googlegrou­ps.com>
> > For more options, visit this group at
> >http://groups.google.com/group/model-glue?hl=en
>
> --
> William Osler - "We are here to add what we can to life, not to get what we
> can from life."- Hide quoted text -
>
> - Show quoted text -

-- 
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

Reply via email to