Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 72750 invoked from network); 14 Feb 2006 02:13:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Feb 2006 02:13:09 -0000 Received: (qmail 98801 invoked by uid 500); 14 Feb 2006 02:13:02 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 98759 invoked by uid 500); 14 Feb 2006 02:13:02 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 98748 invoked by uid 99); 14 Feb 2006 02:13:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2006 18:13:01 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.86.89.65] (HELO elasmtp-kukur.atl.sa.earthlink.net) (209.86.89.65) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2006 18:13:01 -0800 Received: from [24.8.214.238] (helo=[192.168.1.105]) by elasmtp-kukur.atl.sa.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1F8pgF-0002tC-Gu; Mon, 13 Feb 2006 21:12:39 -0500 From: Pasha Minallah Organization: Neptune and Company, Inc. To: users@cocoon.apache.org Subject: Re: DatabaseSelectAction Date: Mon, 13 Feb 2006 19:13:34 -0700 User-Agent: KMail/1.9.1 Cc: "Derek Hohls" References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602131913.34934.pasha@neptuneinc.org> X-ELNK-Trace: e154010878dd9a8e9c7f779228e2f6aeda0071232e20db4d00449e591db8f9986393a855fe735593350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 24.8.214.238 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Sunday 12 February 2006 23:48, Derek Hohls wrote: > > You description here is a little limited, but, I assume > you have sucessfully authenticated a user and have an > ID for them. Yes, that is correct. The user is authenticated using the DatabaseAuthenticatorAction and two variables (sid and survey) are stored in the session using the tosession attribute (as strings). > You could then call a flow script, which picks up the ID > from the session; the SQL could be run from inside flow > and the result then stored in a new session attribute. > You are correct in saying there is a not a single description > of this activity in the docs; but you will be able to find the > info you need by looking at the samples, and also searching > the mail archives. Thanks for pointing me to the samples. They helped but didn't solve my problem. Here are the details. Sitemap Pipeline Matcher: The debug-params resource simply displays these parameter names and values. I learned from the samples that you can pass an output parameter to the modular database actions. What about the input? Database Descriptor: cacsurvey
{session-attr:sid} and {session-attr:survey} were set from the initial authentication. The survey field for this particular SID gets updated in the database using an Original Database Update action. What I am trying to do is to use {session-attr:sid} to query the database record, retrieve the latest survey column value, and store it into {session-attr:survey}. It doesn't matter whether I use Original or Modular actions but I would like to use actions as opposed to flowscript. - Pasha --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org