Entering typecodes

Each typecode represents one value in the drop-down list. Every typelist must have at least one typecode.

Creating a new typecode

You must open or create a non-internal typelist extension or a custom typelist in the Typelist editor to create a new typecode for a typelist. You cannot add a typecode to an internal typelist or typelist extension. See Data entity metadata files and Different kinds of typelists for more information.

In the Typelist editor, click Add .

With the new typecode selected, you can set the following values:
code
A unique identifier for internal Guidewire use. Enter a string containing only letters, digits, or the following characters:
  • Dot (.)
  • Colon (:)

Do not include white space or use a hyphen (-).

Use this code to map to your legacy systems for import and export of PolicyCenter data. The code must be unique within the list. The maximum number of characters in a typecode is 50.

See also Mapping typecodes to external system codes.

name
The text that is visible in PolicyCenter in the drop-down lists in the application. You can use white space and longer descriptions. However, limit the number of characters so the drop-down list does not become too wide on the screen. The maximum name size is 256 characters.
desc
A longer description of this typecode. The maximum description size is 512 characters. PolicyCenter displays the text in this field in the PolicyCenter Data Dictionary.
identifierCode
Determines how typelist codes become Gosu programmatic identifier codes. See Typekeys and typelists.
priority
A value that determines the sort order of the typecodes (lowest priority first, by default). You use the priority to sort the codes in the drop-down list and to sort a list by priority. If you omit this value, PolicyCenter sorts the list alphabetically by name. You can specify priorities for some typecodes but not others, causing PolicyCenter to order the prioritized typecodes at the top of the list with the unprioritized typecodes alphabetized afterwards.
retired
A Boolean flag that indicates that a typecode is no longer in use. The value is still valid, but is not offered as a choice in the drop-down list as a new value. PolicyCenter does not make changes to any existing objects that reference this typecode. If you do not enter a value, PolicyCenter uses the default value of false.

Naming new typecodes

Guidewire recommends that you add the _Ext suffix to the code value for any new typecodes that you create. Do this only if the code value is legal on any external system that needs to use the value. If that value is not legal, then omit the _Ext suffix.

Maximum typelist size

Guidewire strongly recommends that you limit the size of a typelist to 2,000 typecodes. More than 2,000 typecodes in a typelist can cause performance issues. If you need more than 2,000 typecodes, use a lookup (reference) table. Guidewire does not support the use of more than 8,192 typecodes on a typelist.

See also

Typelists and the data model

Guidewire recommends that you regenerate the Data Dictionary after you add or modify a typelist. Regenerating the Data Dictionary is an excellent way to identify any flaws with your new or modified typelist.

During application start up, Guidewire upgrades the application database if there are any changes to the data model, which includes any changes to a typelist or typecode.

See also