cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Dickson" <mikedick...@yahoo.com>
Subject RE: Database Insert Across Multiple Tables
Date Mon, 26 Apr 2004 17:44:05 GMT
When you hit the "new user" button in the Modular Database Actions demo
application it does a GET with the user info and the group info.  Why are
only the user data listed below as params?  Shouldn't the group data be also
listed as params?

In other words, how are the group params being passed in?

<!--

 add one new user plus groups

-->
<map:act type="req-params">
	<map:parameter name="parameters" value="add-user-groups user.name
user.firstname user.uname"/>
	<map:act type="mod-db-add">
		<map:parameter name="table-set" value="user+groups"/>
	</map:act>
</map:act>

> -----Original Message-----
> From: Christian Haul [mailto:haul@informatik.tu-darmstadt.de]
> Sent: Saturday, April 24, 2004 10:45 AM
> To: users@cocoon.apache.org
> Subject: Re: Database Insert Across Multiple Tables
>
>
> Mike Dickson wrote:
> > We are using Cocoon 2.1/MySQL 4.0.16 and have user data
> from a HTML form
> > that needs to be inserted into two tables inside a single
> transaction.
> > Inserts into a single table seem to be simple, but into
> multiple tables is
> > little harder...
> >
> > How should I accomplish this?
> >
> > I have looked at <table-set> in the new Cocoon 2.1 Database
> Actions, but am
> > stumped as to how to use them from the docs.  Sorry
> Reinhard Horn!  :-)
>
> Could you elaborate a little more on were you're stuck?
> Essentially, you
> just list multiple tables in a table set and ask the action to use it.
> The sample that comes with Cocoon does it BTW.
>
> 	Chris.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message