Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# gedw99 8/14/2008 1:44 AM
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
# martijnb 8/14/2008 8:16 AM
Sure, this can be done.

For example, let's take a module that provides the outgoing action. It needs to implement IActionProvider:
public ActionCollection GetOutboundActions()
{
	ActionCollection actions = new ActionCollection();
	actions.Add(new Action("MyModuleAction", new string[3] {"Param1", "Param2", "Param3"}));
	return actions;
}
# gedw99 8/14/2008 9:25 AM
thanks again Martin.

Awesome stuff.
# gedw99 8/18/2008 5:34 PM
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
# martijnb 8/19/2008 12:24 PM
gedw99It 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 8/21/2008 1:56 AM
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