I'm not sure if this is on topic with what you're discussing, but in
my views I use
cfset myself=viewState.getValue("myself") /
a href="#myself#job.pageEventToCall" My Link /a
(open and close brackets intentionally left off)
There are several of these shortcut terms about the viewstate
available in the starter docs on the ModelGlue site.
HTH, and my apologies if not applicable here.
Rich
On Nov 13, 2008, at 8:08 AM, Dan Wilson wrote:
> Wally,
>
> There is a setting in the ModelGlue Configuration for eventValue.
> If you've change that value, then you could get out of sync by
> hardcoding the action in:
>
> <cfset urlVar = arguments.event.getValue("action")>
>
> However, if you do not plan to change this value again, you may not
> care.
>
>
> DW
>
>
>
>
>
> On Thu, Nov 13, 2008 at 10:01 AM, wkolcz <[EMAIL PROTECTED]> wrote:
> I am sure this is not the right way, but the 'action' is nothing
> more than a variable. I was able to capture mine by using something
> like:
>
> <cfset urlVar = arguments.event.getValue("action")>
>
> From: Vicky <[EMAIL PROTECTED]>
> Sent: Thursday, November 13, 2008 6:35 AM
> To: [email protected]
> Subject: [Model-Glue] Re: Dumb Question
>
> I will be curious to see the replies to this myself, if I'm grokking
> your question right. I have just started picking up MG3, and I've
> been dealing with this the way I did in MG2... but if I am
> understanding the docs correctly, there is perhaps a better way to
> do it now?
>
> I've been using eXit Events....
>
>
> My MG.xml...
> <include name="body" template="templates/showTicketTemplate.cfm">
> <value name="xe.linkHistory" value="ShowHistory" />
>
> </include>
>
> In my showTicketTemplate.cfm...
>
> <cfset
>
> xe.linkHistory = viewstate.getValue("xe.linkHistory") />
> <
> ahref="#myself##xe.LinkHistory#"><imgsrc="#hackImage#historyTab.jpg"/
> ></a>
> Which of course refers back to the event in the MG.xml...
>
> <event-handler name="ShowHistory">
>
> Heck, there may be a better way in MG2 than I've been doing it.
>
>
>
>
> On Thu, Nov 13, 2008 at 9:16 AM, Wally Kolcz <[EMAIL PROTECTED]>
> wrote:
>
> What is the way to grab the URL variable in the controller. Lets say I
> have index.cfm?action=go.home and I want to use the 'go.home' in my
> controller. how can I set that to a local variable? <cfset urlVar
> = ?? />
>
> Thanks.
>
>
>
>
>
>
>
>
> --
> "Come to the edge, he said. They said: We are afraid. Come to the
> edge, he said. They came. He pushed them and they flew."
>
> Guillaume Apollinaire quotes
>
> >
>
Rich
Rich Leach
Advanced Certified Adobe ColdFusion Developer
[EMAIL PROTECTED]
http://www.cfsnap.com
303-913-7338
Instant Messenger:
AOL AIM: cfsnaprich
Instant Video Conference:
APPLE MobileMe: [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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
For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---