Re: DB_DataObject and Structures_DataGrid integration
| From: | Andrew Nagy | Date: | Thu, 12 Aug 2004 21:53:45 +0000 |
| Subject: | Re: DB_DataObject and Structures_DataGrid integration | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-32602@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
I am referring to the record edit pages. The fact that it is editing one record is not what I am talking about, it is the table layout not the content i am referring to. | Address | Phone | Edit --+---------+-------+------That's a different kind of thing. That's showing and editing *one* record. DataGrid shows multiple records at once. It makes sense to be editing a record, not a column. I can think of reason for editing one column, but not many. The DataGrid use would be link when you click Browse on the table. You could then edit the records *on that screen*.Any of the data editing pages (insert, update) have the function column with a drop down for every record (in this case the "records" are table fields) and the value column has a text field. Notice how not every column is editable.Take a look at phpMyAdmin, that's where my ideas for the editable column came from.After looking, I don't see anywhere to edit columns. Where exactly is this?
1 | | |--+---------+-------+------
2 | | |--+---------+-------+------
3 | | |For example, let's say I want to edit the address for every record, I would use the editable column for the address column. Now let's say I wanted to have a link for every record in the edit column. I could use a hyper link column as the column class. The same argument could be made for making an editable record. For example if I want to edit every column for record number 2. However, the reason I feel the way this should be done via a column class, is due to the data types. Let's say addresses are dropdowns and phone numbers are text boxes, I would need to define this per column. Now the trick is, using my paradigm, how do you limit the editing on a per record basis.