PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
FormBuilder enumFields

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Database
View previous topic :: View next topic  
Author Message
apple



Joined: 08 Nov 2007
Posts: 1

PostPosted: Thu Nov 08, 2007 3:54 pm    Post subject: FormBuilder enumFields Reply with quote

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?!


Surprised
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Database All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software