Customizing Menus, Fields and Lists

Objective

After completing this lesson, you will be able to customize menus, fields, and lists.

User Interface Customization

In this lesson, we’ll cover many of the ways you can customize the user interface in APM during implementation. We’ll cover:

  • Customizing menus
  • Customizing field labels, codes and dropdown lists
  • Managing code types and code values 
  • Defining field validations
  • Defining field dependencies
  • Configure forms 
  • Managing field styles

Custom Menus

The Custom Menu feature allows Administrators to rename, move, add, or remove Portals, Tabs, and Menu Items. This feature can be found in the Administrator portal under Configuration → Custom Menu Search.

The video 'Customizing Menus in SAP Agent Performance Management' shows the detailed steps to customize the menus and submenus.

Customize Menus

Business Example:

In this exercise, you will make three customizations to the menus. First, you will make a simple change to rename the Producers tab to Agents. Then, you will use the Custom Menu Search screen to rename the Producers menu to Agents. Finally, you will add the Licenses and Appointments tabs to the Agents menu.

Steps

  1. Change the name of the Producers tab to Agents.

    1. From the Manager portal, select Producers → Producers.

    2. Double-click the Producers title at the top of the window.

      The Producers screen. The Producer header is highlighted.
    3. In the English column, enter Agents.

      The Labels tab of the Field Parameters window. The Producer Search label has been changed to Agents for both English forms.
    4. Select Save, then Close.

  2. Use the Custom Menu screen to rename the Producers menu to Agents.

    1. From the Administrator portal, select ConfigurationCustom Menu Search.

    2. Select Base Manager Menu.

    3. Select Reopen.

    4. Select Edit/View Menu Layout.

    5. Select the pencil next to the Producers menu.

      The Custom Menu screen. The Edit icon for the Producers menu is highlighted.
    6. In the Identifier field, type Agents.

    7. Select OK.

  3. Add the Licenses and Appointments links to the Agents menu.

    1. In the Unassigned Menu Items list, select the Licenses entry.

    2. Place the cursor under the Certification Search entry under the Agents tab. A red bar will appear.

      The Custom Menu screen. The Licenses menu item is selected, and the target destination is shown as a red bar.
    3. Click once on the red bar to insert the menu item.

    4. Repeat these steps to add the Appointments menu item below the Licenses item in the menu.

    5. Select OK.

    6. Select Activate.

    7. To verify the change, return to the Manager portal and expand ProducersCompliance.

Fields and Dropdown Lists Customization

Another part of customization involves the management of the various dropdown lists and their values, assigning the lists to a field, and adding the field to search and display forms. We will cover each of these topics from beginning to end, including Entity Fields, Codes, Entity Edits, and Field Defaults. Once we have created these objects, we will configure a form to include the new fields.

The video Customizing Field Labels, Codes, and Dropdown Lists gives an overview of these options.

Entity Fields

Any piece of data in APM is referenced as an entity. An entity can refer to a field, record, form, table, and many other items.

The Entity Fields functionality allows you to add user-defined fields to existing entities. Fields added by the Entity Fields functionality have the same functionality as standard out-of-box fields. For example, user defined fields are available in Form Configuration, Entity Edits, Field Defaults, Expressions, Security, Entity Indexes, etc.

Create Entity Fields

Business Example:

In this exercise, we will create two entity fields: Producer Birth Date and Favorite Color.

Steps

  1. Create a broker entity field called BirthDate.

    1. In the Portal menu, navigate to AdministratorEntity Configuration and select Entity Field Search.

    2. Select Create(+).

    3. Set the Entity Name to 'Broker'.

    4. Set the Field Name to 'BirthDate'.

    5. Set the Value Type to 'Date'.

      The Entity Field Details screen. A new entity field called Birthdate with the value type “Date” has been created.
    6. Select Save.

    7. Select Activate.

  2. Create a broker entity field called FavoriteColor.

    1. Use the link at the top of the page to return to the Entity Field Search page.

    2. Choose Create.

    3. Set the entity name to Broker.

    4. Set the Field Name to FavoriteColor.

    5. Set the Value Type to Text.

    6. Select the Maximum Length radio button.

    7. In the Maximum Length field, enter 10.

    8. Select Save.

    9. Select Activate.

Code Types and Code Values

A Code Type is a pre-configured list of possible values that can be assigned to a specific field. Code Values define the stored and displayed values for code types. Note that the field code type can only be applied to an out of box field and not to user-defined fields.

There are three different code types:

  1. System-Defined Code Types with System-defined values only allows users to change the displayed value, but are otherwise static.
  2. System-defined Code Types with user-defined values allows you to define both stored and displayed values.
  3. Finally, Client defined code types with client-defined values can be completely customized.

For each of these code types, you can define the display type and display order.

Create a Code Type to Hold a List of Colors

Business Example:

In this exercise, we will configure a dropdown list that allows us to select a favorite color. We will then use Code Values to add values to the list.

Steps

  1. Create a Code Type called Color.

    1. From the Administrator portal, select ConfigurationCode Type Search.

    2. Select Create (+).

    3. Enter the Code Type ID: Color.

    4. Set the Display Order and Display Type to 'Display Value'.

    5. Change the Stored Value Type to 'Text'.

    6. Set the length to '10'.

      The Code Type Detail screen. A new code type called Color has been created.
    7. Select Save.

    8. Select Activate.

  2. Add Code Values to the Color Code Type.

    1. Scroll down to Related Entities.

    2. On the Header row, select Add (+).

    3. In the Stored Value field, enter Red.

    4. In the English field, enter Red.

    5. Select the Save icon on the Related Entities header.

    6. Repeat these steps to add rows for Blue and Green.

      The Code Type Detail screen, displaying three values that have been added to the COLOR code type.
    7. Select Save.

    8. Select Activate.

Field Defaults

The Field Defaults process allows you to define a default value for a field, which is used if the field is not populated when the record is created. Field Defaults are managed from the Administrator Portal under Entity ConfigurationField Defaults.

For example, as shown in the following image, if the Full Name field is not populated, the field will be populated with a concatenation of First Name, Middle Name, and Last Name.

The Field Default for the Name field on the Broker record is displayed.

Field Validations and Dependencies

Entity Edits for Field Validation

Entity edits allow you to create user-defined validations on fields. Use entity edits when you want to create any type of validation on user-defined fields, including dropdown lists.

When you create an entity edit, you will add an expression to define the validation using Groovy.

Entity Edits are managed from the Administrator Portal under Entity ConfigurationEntity Edits.

When configuring an entity edit, the expression must return a Boolean result. The result can return a warning, which allows the user to save the record, or an error, which must be corrected before the record can be saved.

The following image shows an example of an entity edit that requires both the First Name and Last Name fields on the Broker record if the Individual box is checked.

The Entity Edits Detail screen, containing an expression that sets the First Name and Last Name as required if the Individual field is checked on the broker record.

Field Dependencies

The Field Dependency functionality allows you to define relationships between specific fields for an entity and control the valid combinations of field values between the fields. This ensures that valid combinations of field values are used, regardless of whether a record is being created or updated in the user interface, during a posting process, or through any other method. Field Dependencies are managed from the Administrator Portal under Entity ConfigurationField Dependency Search.

The following image shows an example of a field dependency. If the Broker Type is Account Executive, Account Manager, or Agent Manager, the only Broker Subtype that can be selected is Agent. If the Broker Type is Agency, the Broker Subtype can be IMO, FMO, or NMO.

A diagram showing dependencies between the Broker Type and Broker Subtype records.

Summary

  • The APM user interface can be customized in many ways, including renaming and customizing menus, field labels, code types and values, field validations, and more.
  • The Custom Menu screen allows renaming, moving, adding, or removing Portals, Tabs, and Menu Items.
  • The Entity Fields functionality allows administrators to add user-defined fields to existing entities.
  • Code Types and Code Values define pre-configured lists of possible values for specific fields.
  • Field Defaults allow administrators to define default values for fields.