Re: elementTypeMap
| From: | Alan Knowles | Date: | Fri, 25 Jun 2004 09:36:23 +0000 |
| Subject: | Re: elementTypeMap | ||
| References: | 1 2 | Groups: | php.pear.general php.pear.general |
| Request: | Send a blank email to pear-general+get-13338@lists.php.net to get a copy of this message | ||
The ideal solution for this is the generator should store field lengths in the ini file
[{tablename}__len]
id = 11
test_description = 167777215
.....
and the data should be accessable somehow.. - I've not had time to look into how to do this, and where to put it.. yet..
Regards
Alan
Justin Patrin wrote:
On Thu, 24 Jun 2004 17:08:07 -0500, Sarah Gray <sarah@fabled.net> wrote:Hi, I thought elementTypeMap was set in formBuilder and didn't need to be configured (it's there in the file),It doesn't and shouldn't be set unless you're using a custom or different element type.but textareas are not created for my longtext or text field types -- everything is created in an input type text. The longtext and text fieldtypes in my DO are generated asThe issue here isn't actually FormBuilder, it's DataObject. The createTables.php script sets the type of those fields to DB_DATAOBJECT_STR instead of DB_DATAOBJECT_TXT. You can either alter your database.ini to make them type DB_DATAOBJECT_TXT or put a textFields array in the DataObject listing the text fields.var $test_description; // blob(16777215) blob -- doesthat have something to do with it? (Should it be generating as longtext instead of blob, if so how should I change that?)At any rate, to set elementTypeMap through the database.formBuilder.ini file, what's the exact syntax? I tried: elementTypeMap = shorttext:text,longtext:textarea but nothing happened. Wrong ini file? Wrong syntax? Both? thanks, s. -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php !DSPAM:40db4ea768561151165702!