Return-Path: Delivered-To: apmail-jakarta-turbine-user-archive@apache.org Received: (qmail 65494 invoked from network); 3 Feb 2003 07:44:21 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 3 Feb 2003 07:44:21 -0000 Received: (qmail 2999 invoked by uid 97); 3 Feb 2003 07:45:59 -0000 Delivered-To: qmlist-jakarta-archive-turbine-user@nagoya.betaversion.org Received: (qmail 2992 invoked from network); 3 Feb 2003 07:45:59 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 3 Feb 2003 07:45:59 -0000 Received: (qmail 65148 invoked by uid 500); 3 Feb 2003 07:44:17 -0000 Mailing-List: contact turbine-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Turbine Users List" Reply-To: "Turbine Users List" Delivered-To: mailing list turbine-user@jakarta.apache.org Received: (qmail 65137 invoked from network); 3 Feb 2003 07:44:17 -0000 Received: from s2.relay.oleane.net (195.25.12.49) by daedalus.apache.org with SMTP; 3 Feb 2003 07:44:17 -0000 Received: from zeus.stg.neurosoft.fr (unknown [217.167.243.209]) by s2.relay.oleane.net (Postfix) with ESMTP id 3BF0520F2F for ; Mon, 3 Feb 2003 08:44:27 +0100 (CET) Received: from qualipse.fr ([192.168.0.25]) by zeus.stg.neurosoft.fr (Lotus Domino Release 5.0.9a) with ESMTP id 2003020308450579:2070 ; Mon, 3 Feb 2003 08:45:05 +0100 Message-ID: <3E3E1E01.9020308@qualipse.fr> Date: Mon, 03 Feb 2003 08:45:05 +0100 From: Xavier Ottolini User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: fr, en-us, en MIME-Version: 1.0 To: Turbine Users List Subject: Re: Intake: meaning of $myForm.setQueryKey("abc") ?? References: <1044050369.3187.14.camel@bill.collaborativefusion.com> In-Reply-To: <1044050369.3187.14.camel@bill.collaborativefusion.com> X-MIMETrack: Itemize by SMTP Server on zeus/HERMES(Release 5.0.9a |January 7, 2002) at 03/02/2003 08:45:05, Serialize by Router on zeus/HERMES(Release 5.0.9a |January 7, 2002) at 03/02/2003 08:45:06, Serialize complete at 03/02/2003 08:45:06 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N It would be great if the explanations were as good in the Turbine Web site. Xavier Bill wrote: >Marc > >If the object you are mapping does exist, you do not need to set the >query key. > >I'm including some example code that we use: > >#if( $member ) > #set($Member = $intake.Member.mapTo($member) ) >#else > #set($Member = $intake.Member.Default ) >#end > >The screen class for each template places the necessary objects in the >context (e.g. member) so the template can access them. This allows us >to use the same form for creation and editing. > >Hope that helps... > >-b > > >On Fri, 2003-01-31 at 16:31, Marc Lustig wrote: > > >>Hi, >>I have some trouble with mapping a form to a torque-object and then updating >>it. In the howto I read this: >>#set($loginForm = $mytool.getLoginFormInstance()) >>$loginForm.setQueryKey("abc") >>#set($loginGroup = $intake.LoginGroup.mapTo($loginForm)) >> >>What I don't understand here is the line $loginForm.setQueryKey("abc") >>Why should I assign the object (that exists already in the database) a new >>primary key?? I don't want to change the PK! How is this related to mapping >>the form against the object? >> >>I'd grateful if somebody sheds light on this. >> >>Marc >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: turbine-user-help@jakarta.apache.org >> >> >> > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: turbine-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: turbine-user-help@jakarta.apache.org