Re: DataObjectsFormBuilder - tripleLinks

From: Date: Wed, 17 Nov 2004 09:37:05 +0000
Subject: Re: DataObjectsFormBuilder - tripleLinks
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15588@lists.php.net to get a copy of this message
Justin Patrin wrote:
On Tue, 16 Nov 2004 23:51:17 +0100, Alexander Petri <alex.petri@gmx.de> wrote:
okay: in the file do_user.php i put this:
var $fb_crossLinks = array(    array('table' => 'user_to_hobby_a',
'fromField' => 'user_id', 'toField' => 'hobby_a_id'),
                                                        array('table'
=> 'user_to_hobby_b', 'fromField' => 'user_id', 'toField' => 'hobby_b_id')
                                            );
////////////////////////////////////////////////////////////////////////////// in do_user_to_hobby.php i put nothing in and in do_hobby_(a/b).php i put in: var $fb_linkDisplayFields = array('name_de'); //<- this field should be displayed behind the checkboxes ////////////////////////////////////////////////////////////////////////////// also i have updated the link.ini file: [user_to_hobby_a] user_id = user:id hobby_a_id = hobby_a:id [user_to_hobby_b] user_id = user:id hobby_b_id = hobby_b:id anyway nothing happens even if i dont use 'toField' and 'fromField'
Are you sure that the links file is being read? Try displaying the form for the 'user_to_hobby_a' table.
hmmm only two text fields... i think there should be 2 selectboxes. how can i make sure that the links.ini file is loaded? are there any other things to take care of?

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