Re: master/detail form with FormBuilder

From: Date: Wed, 28 Mar 2007 06:39:06 +0000
Subject: Re: master/detail form with FormBuilder
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26929@lists.php.net to get a copy of this message
Justin Patrin ha scritto:
On 3/27/07, Gian Luca Ziosi <gianlucaziosi@tiscali.it> wrote:
Hi to all. I use PEAR and FormBuilder from little time. You could indicate to me how to creating a form/subform with FormBuilder for editing a record and a group of record of one linked table? Sample tables:
+----------+       +-----------------+
|  orders  |       |  order_details  |
+----------+ 1     +-----------------+
| order_id |<--+   | detail_id       |
| customer |   |   | product_code    |
| ...      |   | N | ...             |
+----------+   +--<| order_id        |
                    +-----------------+
Sample form: +------------------------------------+
| FORM TITLE                         |
+------------------------------------+
|                                    |
| Order ID: ____                     |
| Customer: _______________________ |
| ........: _______                  |
|                                    |
| Order details:                     |
| +--+----------+-------------+----+ |
| |ID| Code     | Description |Q.ty| |
| +--+----------+-------------+----+ |
| | 1| xyz      | qwe         |   6| |
| | 2| abc      | rty         |  12| |
| |__| ________ | ___________ | ___| | | +--+----------+-------------+----+ | +------------------------------------+
Are you asking if you can have a table of editable records? This isn't something that FB does right now. It does have support for crossLinks with extra fields. WOW, that speed!
No, i have not explained. I meant, which it is the better or most diffuse practice for create a form of this type? Does exist a Package for edit a group of record in a table format? Or a "design pattern" that does address this case, datum that is very frequent? It always must make all manually? Thanks again..
Sorry for English. Thanks. PS: where I can post in Italian?


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