cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Arnold <>
Subject Getting Parameters from a Database Action
Date Thu, 02 Jan 2003 21:00:44 GMT
I'm having trouble getting some parameters from a database add action. The
key param is passed through fine, but the value param is not. I'm using
Cocoon 2.0.3. The pipeline in my sitemap is as follows:

<map:match pattern="timesheets/add-activity.html">
  <map:act set="process">
    <map:parameter name="descriptor" value="descriptors/activity.xml"/>
    <map:aggregate element="document">
      <map:part src="cocoon:/menu.xsp" strip-root="true"/>
_ID}&amp;TimesheetMaster_ID={TimesheetMaster_ID}" strip-root="true"/>
    <map:transform src="stylesheets/encode-html.xsl"/>
  <map:aggregate element="document">
    <map:part src="cocoon:/menu.xsp" strip-root="true"/>
    <map:part src="cocoon:/timesheets/add-activity.xsp" strip-root="true"/>
  <map:transform src="stylesheets/encode-html.xsl"/>

A portion of my descriptor is below:

<table name="TimesheetDetail">
    <key param="id" dbcol="TimesheetDetail_ID" type="long" mode="manual"/>
    <value param="TimesheetMaster_ID" dbcol="TimesheetMaster_ID"

So I'm getting TimesheetDetail_ID, but in my core.log I see the following
for TimesheetMaster_ID:

WARN [core.manager] (/encode/timesheets/add-activity.html)
Thread-8/AbstractSitemap: Substitute: value not found for TimesheetMaster_ID
while evaluating

I've tried {../TimesheetMaster_ID} and other variations. Any ideas? I'd
rather not switch to modular database actions just yet.


Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message