For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > April 2004 > DataObject & Formbuilder self ref. tables









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author DataObject & Formbuilder self ref. tables
Mike Carter

2004-04-30, 3:07 am

Hi all,

I'm building forms using FormBuilder based on the DataObject config files,
such as database.links.ini

A problem I've run in to is when a field in a table references another row
in the same table. My links file looks like this:-

[shopcategory]
shopcategory_id = shopcategory:id
shopimage_id = shopimage:id

So a category can be nested within a parent category.

My problem is the auto-generated form - the 'shopcategory_id' field doesn't
get auto-generated as a select list containing all the existing categories
in the table.

Have I mixed something up and overlooked something? Do I need to customize
this auto-form to achieve what I want?

The 'shopimage_id' field in the form appears correctly as a select menu.

Regards,

--
Mike C


________________________________________
______________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
________________________________________
______________________________
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com