Changing Field Sizes

9 views
Skip to first unread message

سونا يوسُف

unread,
Oct 20, 2025, 7:33:17 AM10/20/25
to UniTime Discussion Group
Dear Tomas,

I wanted to ask if you could guide me on how to change the size of the External Id field in the Instructional Offerings -> Class Setup page, as well as the Abbv field in the Subject Areas page.  
I use Unitime version 4.9

instructionalOffering.png

Tomáš Müller

unread,
Oct 26, 2025, 4:31:51 AM10/26/25
to unitime...@googlegroups.com
First, you need to increase the size of the database field. That would be
- class_suffix column of the class_ table (40 chars by default) for the class external id that can be edited on the Class Setup page
- subject_area_abbreviation column of the subject_area table (40 chars by default) for the subject area abbreviation

Second, you need to update the appropriate size in the Hibernate model
(We also have the sizes in the hmb.xml files, e.g., PreferenceGroup.hbm.xml for the class_suffix, but these are only used to generate the Hibernate model -- ant create-model.)

Third, the user interface needs to be updated to allow longer texts
../gwt/client/offerings/ClassSetupTable.java for the class external id
../server/admin/SubjectAreas.java for the subject area abbreviation -- there are two numbers, field width (100px) and text max width (40chars)

--
You received this message because you are subscribed to the Google Groups "UniTime Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unitime-discu...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/unitime-discuss/0933deda-ecc7-4d98-bf7d-51fcf276ffedn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages