Hi BJ, Thank for suggestion. But I find some interesting: 1. I'm using PostgreSQL. And in the file /framework/entity/fieldtype/fieldtypepostgres.xml, I find the following line: <field-type-def type="name" sql-type="VARCHAR(100)" java-type="String"></field-type-def> That means length of "type=name" field is equal to varchar(100) in postgres.
2. In file entitymodel.xml of party application, at PartyGroup entity definition, the groupNameLocal field is defined as: <field name="groupNameLocal" type="name"></field> 3. In table party_group of the postgres db, I find the field group_name_local has length 100. That's ok. 4. In the form create PartyGroup of party application, the groupNameLocal text box has size is 40. So I only type 40 characters. This opposite to all three above things. Could you give me suggestion? Thank you very much. 2008/10/25 BJ Freeman <[EMAIL PROTECTED]> > more detailed inline > > Vu Hong Thuan sent the following on 10/25/2008 3:16 AM: > > Hi, > > I'm a newbie in ofbiz. I have a question. > > The length of the entity field whose type is "name" is 100. By when is > > rendered as a textbox in form, the size of text box is 40. > Then the DB file that define that field type says it is 40. > > > I really don't know about the mismatch in size of file type and of > text-box > > form input. > you need to become familiar with how ofbiz works. you don't define max > field lengths in the UI, it is done at the entity level, and the DB file > for the DB you are using. > > > > > Eg. In the form "createPartyGroup" size of GroupName text-box is 40. But > in > > the entity.config, type of GroupName field is "name" type. And length of > > "name" type is 100. > > How can I change the size of text-box of "name"-type entity field to 100? > This is defined in the file for the DB you are using. > since it will effect all fields in every entity with that type, it is > better to use extend-entity and create a new field that uses one of the > fieldtypes that uses a blob or text db type. > > > > > Thank for any suggestion. > > > -- Vũ Hồng Thuận Công ty Phần mềm và Truyền thông Việt Nam, NAMMEDIA, INC. Email: [EMAIL PROTECTED] Web: http://www.nammedia.com ĐT: (84)-04-5680964 - Fax: (84)-04-5681083 DĐ: 0984328513 Vu Hong Thuan Vietnam Software and Communication Company. NAMMEDIA. INC Email: [EMAIL PROTECTED] Web: http://www.nammedia.com Phone: (84)-04-5680964 - Fax: (84)-04-5681083 Mobile: (84)-984328513
