|
|
Rank: Advanced Member Groups: Member
Joined: 4/3/2006 Posts: 243 Points: 450 Location: the moon :)
|
Hey,
I have to pass many param from one Module in a page to another Module in another page.
The way to do this is with Action Connections i think... i could use session state but its terrible for many many reasons. The main one being that you never know the exist point where you should clear the session. Also after the user logs in i have a sneaky suspicion that the session for the user session MIGHT get cleared. But anyway i digress...
So, what i am wondering about is if you can pass more than one Param for a single Action??
ged
if your doing it hard your probably doing it the wrong way....
|
|
 Rank: Administration Groups: Administration
, Member
Joined: 12/30/2004 Posts: 1,674 Points: 1,824 Location: Wageningen (NL)
|
Sure, this can be done. For example, let's take a module that provides the outgoing action. It needs to implement IActionProvider: Code:
public ActionCollection GetOutboundActions()
{
ActionCollection actions = new ActionCollection();
actions.Add(new Action("MyModuleAction", new string[3] {"Param1", "Param2", "Param3"}));
return actions;
}
|
|
Rank: Advanced Member Groups: Member
Joined: 4/3/2006 Posts: 243 Points: 450 Location: the moon :)
|
thanks again Martin.
Awesome stuff.
if your doing it hard your probably doing it the wrong way....
|
|
Rank: Advanced Member Groups: Member
Joined: 4/3/2006 Posts: 243 Points: 450 Location: the moon :)
|
Martin,
Just another question about this.
IF you have more tan one arguments that is passed on an outbound action does that screw up the Admin editor.
It seems that this is only designed to handle a single argument?
Ged
if your doing it hard your probably doing it the wrong way....
|
|
 Rank: Administration Groups: Administration
, Member
Joined: 12/30/2004 Posts: 1,674 Points: 1,824 Location: Wageningen (NL)
|
gedw99 wrote: It seems that this is only designed to handle a single argument?
No, that's a bug. Could you create a jira bug report? Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 4/3/2006 Posts: 243 Points: 450 Location: the moon :)
|
Done.
CUY-152
Regarding the wiring up of the Action Connections. Its very laborious and prone to error.
I understand that maintaining loose coupling between the modules is vital.
However i was think that maybe Declarative attributes would be a very good use here ?
G
if your doing it hard your probably doing it the wrong way....
|
|
|
Guest |