A130 – Create linked list

What you will learn ?

How to create lists of dependent values to another list of values

STEP 1: Create a Enumeration type field

Prerequisite:

To bind values from lists, it is necessary to have an Enumeration field in the business object.

Exercise:

  • Open the object AppClient
  • Check that the cliType field exists with 3 possible values (see Exercise Create an object field):
    • PRO (Lead),
    • CTM (Customer)
    • ABO (Abandoned)
  • Click on Add field to add another list that will become dependent on the type of customer in the exercise.

STEP 2: Create a field

The linked list will be able to take different values depending on the value of another list. The first step is to create:

  • The field that merge all the related lists
  • And a list containing all possible values (union of all possible codes) NB: The general list is necessary to allow the search form and submit lists of all codes in the language of the user.

Exercise:

  • Create a field cliQualif as a qualification of the customer (who later will depend on its type)
  • Physical name = cli_qualif
  • Listed size 3 (reminder: length of the list of codes basis, and not the length of the translated labels)
  • Visible everywhere and editable
  • Not required
  • Translate the cliQualif field by Qualification

STEP 3: Create a list with all possible codes

This step is to create the global linked list of all possible values.

Exercise:

Populate the list of all possible qualifications of the customer:

  • Name of the list with 5 CLI_QUALIF codes / labels:
  • OCA Code: occasional customer
  • REG Code: regular customer
  • QUO Code: daily customer
  • MEC Code: unhappy
  • SNV Code: no news

STEP 4: Create an object list

Exercise:

  • put cliQualif field in position 210 in the AppClient-1 area (reminder: customer information area)

STEP 5: Check the list

Exercise:

  • Open the cliQualif field then click on Edit list
  • Check that the 5 values are present

STEP 6: Create the list for customer

Create all possible linked list by copying one.

  • Click on Copy to create by copying
  • Change the name of the list and save
  • Remove some codes

Exercise:

Copy CLI_QUALIF and create CLI_QUALIF_CLIENT list, this list should contain only the possible qualifications for the customer. Customer

  • Click to copy the CLI_QUALIF list
  • Change the name to CLI_QUALIF_CLIENT
  • Remove the MEC codes and SNV
  • Save

STEP 7: Create list for Abandoned and Lead

Exercise:

Copy to create a CLI_QUALIF_ABANDON list with only the MEC and SNV codes. This list will be associated with the type of customer Abandoned.

STEP 8: Link the lists

Once all related lists have been created, a final step is to define dependencies between them.

  • The configuration to do it is in Menu Administration / linked List

Exercise:

  • Click on Create to define a new linked list
  • Fill in the form as follows: List field:
  • Select the cliType field of the AppClient object
  • Select the CTM code of CLI_TYPE object linked field:
  • Select the field cliQualif of the AppClient object
  • Select the CLI_QUALIF_CLIENT linked list
  • Save and test

STEP 9: Clear cache

 

Exercise:

  • Do the same with the “ABO” code with the CLI_QUALIF_ABANDON list
  • Do the same with the “PRO” code with the CLI_QUALIF_PRO list
  • Clear the AppClient object cache to test

STEP 10: Test

Exercise:

  • Open a customer
  • Check the different values in the Qualification
  • Open the search form and the list of customers to verify that all the codes are translated.

A120 – Historize a business object

Historize a business object.

A140 – Calculated field

What is a calculated field and how to configure it.