Login

Username

Password





Register   Reset password

Get Cuyahoga at SourceForge.net. Fast, secure and Free Open Source software downloads

Forum

Welcome Guest Search | Active Topics | Members

With Action Connections can you pass multiple params for a single action. Options
gedw99
Posted: Wednesday, August 13, 2008 4:44:28 PM
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....
martijnb
Posted: Wednesday, August 13, 2008 11:16:09 PM

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;
}
gedw99
Posted: Thursday, August 14, 2008 12:25:17 AM
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....
gedw99
Posted: Monday, August 18, 2008 8:34:05 AM
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....
martijnb
Posted: Tuesday, August 19, 2008 3:24:13 AM

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
gedw99
Posted: Wednesday, August 20, 2008 4:56:39 PM
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....
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Yet Another Forum.net version 1.9.0 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.