SAP Knowledge Base Article - Public

3595603 - Creating drop-down lists in Goal Plan Template XMLs

Symptom

This article describes what field type should be used in order to create drop-down list in Goal Plan template XMLs according to SAP Help Portal guide: Enum Fields.

Environment

SAP SuccessFactors Goal Management

Resolution

A field of type enum allows you to specify a drop-down list with all the possible values for the field.

Enum value:

Defines one of the possible values for a field of <type="enum">. The order of the enum-value subelements in the XML file determines the order in which the drop-down list is displayed, and the collation order for sorting by the field.

  • The value attribute defines the nonlocalized, internal string, under which the data is stored. (Use the enum-label subelement to define localized string labels).
  • The style attribute optionally defines the background and text color.

Enum label:

The text that displays in the dropdown list. There must be at least one enum-label subelement defined per enum-value.

XML Example: 

<field-definitionid="state"type="enum"required="false"showlabel="false"viewdefault="on">
<field-label>Status</field-label>
<enum-valuevalue="none"style="background:white;color:black;">
<enum-label>none</enum-label>
</enum-value>
<enum-value value="Will meet target" style="background:green;color:white;">
<enum-label>Will meet target</enum-label>
</enum-value>
<enum-valuevalue="Don't know"style="background:yellow;color:black;">
<enum-label>Don't know</enum-label>
</enum-value>
<enum-value value="Will not meet target"style="background:red;color:white;">
<enum-label>Will not meet target</enum-label>
</enum-value>
<enum-value value="Goal completed"style="background:blue;color:white;">
<enum-label>Goal completed</enum-label>
</enum-value>
</field-definition>

See Also

2250190 - SCR Form: XML Software Change Request for Goal Plans

Keywords

SuccessFactors, SF, GM, drop-down, dropdown, list, drop-down list, goal, goal plan, xml, custom field, enum, change, XML changes , KBA , LOD-SF-GM-TMP , Template Management , How To

Product

SAP SuccessFactors HCM Core 2411