Re: How to specify to FormBuilder the select tags to be generated?

From: Date: Sat, 25 Jun 2005 17:20:39 +0000
Subject: Re: How to specify to FormBuilder the select tags to be generated?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19766@lists.php.net to get a copy of this message
On 6/25/05, PHPDiscuss - PHP Newsgroups and mailing lists <nyshab@gmail.com> wrote: > I think this is a stupid question but I've double checked/searched for a > clear example or explanation of how the select html tag is created for a > particular field in a table, and didn't found nothing. > > my code goes like this > > $object = DB_DataObject::factory('table'); > $builder =& DB_DataObject_FormBuilder::create($object); > $builder->formHeaderText = "Add an Object"; > $builder->submitText = "Add"; > $buider-> // how to specify a field foo from table will be a SELECT ? > actually my output are all input text boxes > > sorry but documentation in http://opensource.21st.de/16.html > doesn't seem > to be clear for me at this point. Should I specify there in the code? > create an ini file? use an existing one? which one? > Hope anybody can help me. > First you have to set up the field in the link-from table as a link. This is done in DB_DO's db.links.ini file. By default all fields will be shown in the select options. To specify the fields to display use the (fb_)linkDisplayFields option in the linked DO. -- Justin Patrin

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