 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
apple
Joined: 08 Nov 2007 Posts: 1
|
Posted: Thu Nov 08, 2007 3:54 pm Post subject: FormBuilder enumFields |
|
|
Hi, I'm trying to use FormBuilder for a school project, I've gotten rudimentary forms displayed, but am now having trouble with enumFields.
The database has a lot of foreign key fields which would be really nice to generate as selection boxes automatically, and I thought FormBuilder would do this.
I set up a proper links.ini, but no form is displayed when I add the
| Code: | | var $fb_enumFields = array('item'); |
line to the bottom of the subclassed DataObject. $fb_LinkDisplayFields is also declared.
But when I try to display the form, it freezes after reading in the links.ini. After hours of tearing out my hair, I read on the wiki that you also need enumOptions if you're not using MySQL (we're using postgres).
Added that in, the form displays properly. But that's just one of the forms.
Is there any way to get the automatic linking done with postgres?
Where in FormBuilder is the selection box filled in from the links?
I've found the DB_DATAOBJECT_FORMBUILDER_ENUM part of the case statement, but it doesn't look like it does anything related to the links there...
Help?!
 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|