Hi Melanie,

I think you're asking for this (which would go in your template):

$link.setAction("YourAction").setPage("GoHere.vm").addQueryData("parm",
"value")

This will call YourAction.  If YourAction doesn't do a setTemplate or
redirect or something, then GoHere.vm will be shown after the action is
complete.  You can get "value" in your action by using
data.getParameters().getString("parm")


That being said, however... How do you want to change the layout?  Are you
just applying a skin?  If so, have a look at the UIManager class.  This
might be what you're looking for and not require a bunch of templates to
change the look of your application.

Good luck,

David

-----Original Message-----
From: Melanie Philpot [mailto:[EMAIL PROTECTED] 
Sent: Wednesday May 19, 2004 3:35 AM
To: Turbine User (E-mail)
Subject: link parameters


Can I pass parameters from a link to an action?
How do I go about it?

Basically I want a link to change a layout, so I have set up an action which
it goes to.
>From the action I want to set the right layout and know where I've linked
from so I can set the right screen. (hence the parameter)

Thanks for any help

Melanie

===========================================================
Melanie Philpot 
Web Developer 
Central Government Division
Anite Public Sector     
110 Fleet Road
Fleet 
Hampshire 
GU51 4BL

tel:  01252 360650
ddi: 01252 360668
fax: 01252 819729

email:mailto:[EMAIL PROTECTED]
web: http://www.aniteps.com
===========================================================
Registered Office: Anite Public Sector: 100 Longwater Avenue, GreenPark,
Reading, Berkshire, RG2 6GP. VAT No. 732 9280 28 
Registered in England No. 4045673

This email and any files transmitted with it are confidential and are
intended solely for the use of the individual or entity to whom they are
addressed. If you have received this email in error please inform the sender
and do not print, copy or disclose its contents to any other person nor use
it for any purpose other than for what it was intended.
nor use it for any purpose other than for what it was intended.



Scanned for viruses by MessageLabs. The integrity and security of this
message cannot be guaranteed. This email is intended for the named recipient
only, and may contain confidential information and proprietary material. Any
unauthorised use or disclosure is prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to