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 ExerciseCreate 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 byQualification

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 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 andSNV
- 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 theAppClient
object - Select the
CTM
code ofCLI_TYPE
object linked field: - Select the field
cliQualif
of theAppClient
object - Select the
CLI_QUALIF_CLIENT
linked list - Save and test
A120 – Historize a business object
Historize a business object.