Re: DB_DataObject_FormBuilder_QuickForm and Smarty

From: Date: Mon, 20 Dec 2004 17:42:28 +0000
Subject: Re: DB_DataObject_FormBuilder_QuickForm and Smarty
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16345@lists.php.net to get a copy of this message
On Tue, 21 Dec 2004 00:10:25 +0800, Muhyiddin A.M Hayat <middink@indo.net.id> wrote: > Ok, thanks > but, i can't change text of label that created by FormBuider. how can i do > that? Try looking at the fieldLabels configuration option. > and i have created link but the value selectbox is ID from gender table, i > would like key=gender.id and value=gender.name. I believe I mentioned linkDisplayFields before. This goes into the DO you're linking *to*. > > I have table below: [snip] > my problem in FormBuilder are: > - Create more header, eg. Person Information, Picture, Company > Information You're going to have to use postGenerateForm and HTML_QuickForm's insertElementBefore for this. > - Change text label, eg. First_Name to First Name fieldLabels > - Display uploaded picture in edit mode. Use preDefElements or postGenerateForm and insertElementBefore. > - Create file upload (upload file to bytea filed) FB doesn't do this for you. You'll have to put the file content in the DO property in preProcessForm. > - Create more then one button Such as? [snip] > how to convert them to Form Builder?? Sorry, I (we) don't have time to convert something for you. Keep asking questions if you need help. > > Thanks.. > > > ----- Original Message ----- > From: "Justin Patrin" <papercrane@gmail.com> > To: "Muhyiddin A.M Hayat" <middink@indo.net.id> > Cc: <pear-general@lists.php.net> > Sent: Monday, December 20, 2004 5:18 AM > Subject: Re: [PEAR] DB_DataObject_FormBuilder_QuickForm and Smarty > > > On Mon, 20 Dec 2004 03:00:20 +0800, Muhyiddin A.M Hayat > > <middink@indo.net.id> wrote: > >> > >> ----- Original Message ----- > >> From: "Justin Patrin" <papercrane@gmail.com> > >> To: "Muhyiddin A.M Hayat" <middink@indo.net.id> > >> Cc: <pear-general@lists.php.net> > >> Sent: Monday, December 20, 2004 2:38 AM > >> Subject: Re: [PEAR] DB_DataObject_FormBuilder_QuickForm and Smarty > >> > >> > On Mon, 20 Dec 2004 02:27:00 +0800, Muhyiddin A.M Hayat > >> > <middink@indo.net.id> wrote: > >> >> Dear, > >> >> > >> >> How to using DB_DataObject_FormBuilder_QuickForm and Smarty? > >> > > >> > The package is named DB_DataObject_FormBuilder. > >> > DB_DataObject_FormBuilder_QuickForm is a driver for it. Admittedly > >> > it's currently the only one, but the fact remains. > >> > > >> > You should look up using HTML_QuickForm with Smarty. There are > >> > examples with the HTML_QuickForm package. > >> > > >> > >> but, how to use DB_DataObject_FormBuilder_QuickForm get value from > >> DB_DataObject and > >> DB_DataObject_FormBuilder_QuickForm stored that value to DB_DataObject? > >> > >> do you know where is can i found example like that? > > > > > > This is what FormBuilder does. There is a simple example in the code > > source which youcan see here: > > > > http://pear.php.net/package/DB_DataObject_FormBuilder/docs/0.10.3/DB_DataObject_FormBuilder/_DB_DataObject_FormBuilder-0.10.3_FormBuilder_php.html > > > >> > >> >> How to Using Lookup field in DB_DataObject_FormBuilder_QuickForm? > >> >> > >> > > >> > What do you mean by using a lookup field? > >> > >> I would like to create <select> but that values from other table > >> eg. > >> [person] > >> id > >> name > >> gender_id > >> > >> [gender] > >> id > >> name > >> > >> ------------------- > >> > >> in person form there are 1 text and 1 select, the values of select is > >> name > >> from gender table. > > > > Once you set up the field correctly in your db.links.ini file this > > will be automatic (well, you have to set the linkDisplayFields for the > > gender table as well). > > > > For links: > > > > http://pear.php.net/manual/en/package.database.db-dataobject.intro-relations.php > > > > For the link display fields: > > > > http://opensource.21st.de/tiki-index.php?page=Formbuilder+configuration+options#id783256‰ > > )_l=š<vú\ > > > >> > >> > > >> > -- > >> > Justin Patrin > >> > > >> > -- > >> > PEAR General Mailing List (http://pear.php.net/) > >> > To unsubscribe, visit: > >> > http://www.php.net/unsub.php > >> > > >> > > >> > > > > -- > > Justin Patrin > > > > -- > > PEAR General Mailing List (http://pear.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- Justin Patrin

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