Re: Formbuilder and crossLinkExtraFields not working

From: Date: Fri, 30 Mar 2007 07:46:12 +0000
Subject: Re: Formbuilder and crossLinkExtraFields not working
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26950@lists.php.net to get a copy of this message
> > I have setup fb_crossLinkExtraFields for my table, but formbuilder is > > not updating the table. In debug mode it says "... is defined not to be > > editable by the user" for all crosslink subelements. When I remove the > > fb_crossLinkExtraFields an INSERT is at least tried with the link > > fields, but fails, as the extra fields are required. Am I missing some > > magic here? I don't have userEditableFields set up. Formbuilder version > > is 1.0.0RC6 on php-5.2.1 with MDB2-2.4.0 and MDB2_Driver_mysqli-1.4.0. > > Any help? > > Are you setting any of the fb options in the crossLink table? Hi, having a close look at debug output, I noticed formbuilder is creating UPDATE statements for the crosslinks. These should actually be INSERTs. After having a look at the source, I came to the conclusion it must be because of multiple primary keys in the crosslink table. After adding a dedicated pk for it, it worked. I am always forgetting about this DataObject limitation, as it would not be necessary otherwise. Thanks anyway. Jan

« previous php.pear.general (#26950) next »