Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 24792 invoked from network); 5 Jul 2006 06:29:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jul 2006 06:29:13 -0000 Received: (qmail 16358 invoked by uid 500); 5 Jul 2006 06:29:09 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 16286 invoked by uid 500); 5 Jul 2006 06:29:09 -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 16275 invoked by uid 99); 5 Jul 2006 06:29:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jul 2006 23:29:09 -0700 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 [213.133.33.30] (HELO mailrelay.is.nl) (213.133.33.30) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jul 2006 23:29:08 -0700 Received: from [213.133.51.241] (HELO hai01.hippo.local) by mailrelay.is.nl (CommuniGate Pro SMTP 4.3.5) with ESMTP id 19493882 for users@cocoon.apache.org; Wed, 05 Jul 2006 08:28:46 +0200 Received: from [10.10.100.209] ([10.10.100.209]) by hai01.hippo.local with Microsoft SMTPSVC(5.0.2195.6713); Wed, 5 Jul 2006 08:28:46 +0200 Message-ID: <44AB5BAB.3080305@hippo.nl> Date: Wed, 05 Jul 2006 08:26:51 +0200 From: Niels van Kampenhout Organization: Hippo User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Dynamic selection list References: <20060704164053.GC24083@localhost.localdomain> In-Reply-To: <20060704164053.GC24083@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 05 Jul 2006 06:28:46.0538 (UTC) FILETIME=[45083AA0:01C69FFC] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Toby wrote: > I'm trying to implement a dynamic selection list for a form field. > I need to extract the selection values and labels from a database. > > The only way of filling a selection list with dynamic values, that I > could glean from the documentation, is by using flow-jxpath. > > Which poses the problem of how to make a SQL query in javascript. > > Or, if flowscript could fetch an arbitrary sitemap URI and access the > generated XML data, I could write the query in ESQL. Is it possible? > > Am I barking at the wrong tree here? How should I proceed? Hi Toby, You can also make a pipeline that fetches the data from the DB using the SQLTransformer [1], and transforms the resulting XML into a CForms selection list format. Then in you form model specify a dynamic selection list: This seems much easier than the flow/jx solution to me. See [2] for more info. Regards, Niels [1] http://cocoon.apache.org/2.1/userdocs/sql-transformer.html [2] http://cocoon.apache.org/2.1/userdocs/widgetconcepts/selectionlists.html --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org