Re: Formbuilder and crossLinkExtraFields not working
| From: | Jan Wagner | Date: | Fri, 30 Mar 2007 06:46:41 +0000 |
| Subject: | Re: Formbuilder and crossLinkExtraFields not working | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26949@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,
so here follow more details. I have three tables. prop_values,
prod_properties and prod_prop_values. prod_prop_values links
prod_properties and prop_values together. I want the crosslinks
displayed for prod_properties. So my prod_properties do has
fb_crossLinks = array('table' => 'prod_prop_values') and the usual stuff
like formHeaderText, linkDisplayFields and fieldLabels. The same for
prop_values and prod_prop_values. prod_prop_values has additionally
fb_crossLinkExtraFields = array('prod_prop_val_type_id',
'prod_prop_val_active') where prod_prop_val_type_id links to table
prod_prop_val_types. The links.ini file is all set and the subform for
the crossLinks is shown as aspected. Just updating the values does not
work (post values are displayed allright).
Jan