On 04.Apr.2002 -- 04:31 PM, Rolfe Jenny wrote:
> Okay so what I want to do is use the default database add action to update
> two tables, in one I automatically generate an id then I want to also put
> this id into the second table. So here's what I do:

I think the modular database actions are stable now and they know
about autoincrement columns. So perhaps you should have a look at it.

> <connection>xcpt</connection>
>   <table name="page">
>        <keys>
>          <key param="pageid" dbcol="pageid" type="int" mode="manual" />
>        </keys>
>     <values>
>    
>       <value param="layoutnum" dbcol="layoutnum" type="string"/>
>       ...more values...
>     </values>
>   </table>
> 
>   <table name="boalinks">
>     <values>
>       <value param="key:page:pageid" dbcol="childpageid" type="int" />
>       ...more values...
>    </values>
>   </table>
> 
> I've tried putting in a key, tried page.pageid, etc, etc, ect. Basically I'm
> randomly trying stupid things now, pissing in the wind and getting very
> angry with it.

Since you quoted the last discussion about this in your last posting,
you've seen my advice on this and the solution we reached there
already. Printout all request attributes and see what's there. It
would greatly help if you could supply us with the relevant part of
your log, perhaps something else goes wrong.

> I'm using cocoon-2.0.2-dev on Tomcat 4.01
> 
> I may cry very soon...
> 
> And yes I know I've already double posted a big bloated version of this plea
> for help but this will be the last time I ask, promise!

Considering that your posts were all dated on the 3th and this cry for
help is dated 4th, you should practice a little bit more patience when
dealing with volunteer based support. I'm sure you could get paid
support from most regulars on this list with shorter response times.

Ah, and although it is usually a very good idea to stay within the
same thread, traffic is too high to check threads that a) were
obviously resolved for good and b) are >1 month old, which is in your
case, a difference of 3249 mails in my cocoon-box (which merges
cocoon-users and cocoon-dev)

        Chris.

-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to