Difference between revisions of "Common functions:Dynamic Drop-down Lists"

From Logilys
Jump to: navigation, search
(Dynamic Drop-down List Management)
Line 114: Line 114:
 
|-
 
|-
 
|  
 
|  
<span style="color: rgb(255, 0, 0);">'''E&nbsp;:'''</span> Le bouton [[Image:Bouton Retirer.png]] permet de supprimer un choix en <span style="color: rgb(255, 0, 0);">'''B'''</span>. Pour ce faire, sélectionner le choix à modifier, puis cliquer sur le bouton<br>[[Image:Bouton Modifier.png]]. Après avoir cliqué sur le bouton, [[Fonctions communes:Listes déroulantes dynamiques#Retrait_d.27un_choix_de_la_liste_d.C3.A9roulante_dynamique_.C3.A0_partir_de_la_.C2.AB.C2.A0gestion_des_listes_d.C3.A9roulantes_dynamiques.C2.A0.C2.BB|cette fenêtre]] s'ouvre.  
+
<span style="color: rgb(255, 0, 0);">'''E:'''</span> The [[Image:Button Minus remove delete.png]] button allows you to delete an option at <span style="color: rgb(255, 0, 0);">'''B'''</span>. To do so, select the option to modify, then click on the [[Image:Button Minus remove delete.png]] button. After clicking on that button, [[Common functions:Dynamic Drop-down Lists#Removing_an_Option_from_the_Dynamic_Drop-down_List_from_the_.22Dynamic_drop-down_list_management.22.C2.A0|this window]] opens.  
  
 
|  
 
|  
'''ATTENTION&nbsp;:''' S'assurer qu'aucun élément ne contient la valeur avant de la supprimer sinon, les éléments qui contiennent cette valeur se retrouveront vides. Pour plus d'informations, consulter [[Fonctions communes:Listes déroulantes dynamiques#Retrait_d.27un_choix_de_la_liste_d.C3.A9roulante_dynamique_.C3.A0_partir_de_la_.C2.AB.C2.A0gestion_des_listes_d.C3.A9roulantes_dynamiques.C2.A0.C2.BB|cette section]].<br>  
+
'''CAUTION:''' Make sure no element contains the value before deleting it; otherwise, the elements that contain this value will be empty. For more information, see [[Common functions:Dynamic Drop-down Lists#Removing_an_Option_from_the_Dynamic_Drop-down_List_from_the_.22Dynamic_drop-down_list_management.22.C2.A0|this section]]. <br>  
  
 
|}
 
|}
Line 128: Line 128:
 
|-
 
|-
 
| colspan="2" |  
 
| colspan="2" |  
Après avoir cliqué sur le bouton [[Image:Bouton Ajouter.png]], la fenêtre suivante s'ouvre.  
+
After clicking on the [[Image:Button_add_plus.png]] button, the following window opens.&nbsp;
  
 
|-
 
|-
Line 134: Line 134:
 
|-
 
|-
 
| width="50%" |  
 
| width="50%" |  
<span style="color: rgb(255, 0, 0);">'''A&nbsp;:'''</span> Choisir le champ de liste déroulante dynamique pour lequel un choix doit être ajouté.  
+
<span style="color: rgb(255, 0, 0);">'''A:'''</span> Select the field of the drop-down list for which an option should be added.&nbsp;
  
 
| width="50%" |  
 
| width="50%" |  
<span style="color: rgb(255, 0, 0);">'''B&nbsp;:'''</span> Saisir la valeur du choix prédéfini.  
+
<span style="color: rgb(255, 0, 0);">'''B:'''</span> Enter the value of the predefined option.  
  
 
|}
 
|}
Line 148: Line 148:
 
|-
 
|-
 
| colspan="2" |  
 
| colspan="2" |  
Après avoir cliqué sur le bouton [[Image:Bouton Modifier.png]], la fenêtre suivante s'ouvre.  
+
After clicking on the&nbsp;[[Image:Button_Edit.png]] button, the following window opens.  
  
 
|-
 
|-
Line 154: Line 154:
 
|-
 
|-
 
| width="50%" |  
 
| width="50%" |  
<span style="color: rgb(255, 0, 0);">'''A&nbsp;:'''</span> Choisir le champ de liste déroulante dynamique pour lequel un choix doit être modifié.<br>  
+
<span style="color: rgb(255, 0, 0);">'''A:'''</span> Select the field of the drop-down list for which an option should be modified. <br>  
  
 
| width="50%" |  
 
| width="50%" |  
<span style="color: rgb(255, 0, 0);">'''B&nbsp;:'''</span> Saisir la nouvelle valeur du choix prédéfini.<br>  
+
<span style="color: rgb(255, 0, 0);">'''B:'''</span> Enter the new value of the predefined option. <br>  
  
 
|-
 
|-
 
|  
 
|  
<span style="color: rgb(255, 0, 0);">'''C&nbsp;:'''</span> Si cette case est cochée, la nouvelle valeur saisie en <span style="color: rgb(255, 0, 0);">'''B'''</span> sera assignée à tous les éléments qui contenaient l'ancienne valeur.<br>  
+
<span style="color: rgb(255, 0, 0);">'''C:'''</span> If this checkbox is checked, the new value entered at <span style="color: rgb(255, 0, 0);">'''B'''</span> will be assigned to the elements that contained the old value. <br>  
  
 
|  
 
|  
<span style="color: rgb(255, 0, 0);">'''D&nbsp;:'''</span> Il s'agit du nombre d'éléments dans lesquels la valeur à modifier était spécifiée.  
+
<span style="color: rgb(255, 0, 0);">'''D:'''</span> This is the number of elements in which the value to modify was specified.&nbsp;
  
 
|}
 
|}
Line 175: Line 175:
 
|-
 
|-
 
| colspan="2" |  
 
| colspan="2" |  
Après avoir cliqué sur le bouton [[Image:Bouton Retirer.png]], la fenêtre suivante s'ouvre.  
+
After clicking on the [[Image:Button_Minus_remove_delete.png]] button, the following window opens.  
  
 
|-
 
|-
Line 181: Line 181:
 
|-
 
|-
 
| width="50%" |  
 
| width="50%" |  
<span style="color: rgb(255, 0, 0);">'''A&nbsp;:'''</span> Il s'agit du champ de liste déroulante dynamique pour lequel le choix en <span style="color: rgb(255, 0, 0);">'''B'''</span> doit être retiré.  
+
<span style="color: rgb(255, 0, 0);">'''A:'''</span> This is the field of the dynamic drop-down list for which the option at <span style="color: rgb(255, 0, 0);">'''B'''</span> should be removed.  
  
 
| width="50%" |  
 
| width="50%" |  
<span style="color: rgb(255, 0, 0);">'''B&nbsp;:'''</span> Il s'agit de la valeur qui sera retirée des choix prédéfinis.  
+
<span style="color: rgb(255, 0, 0);">'''B:'''</span> This is the value that will be removed from the predefined options.  
  
 
|-
 
|-
 
|  
 
|  
<span style="color: rgb(255, 0, 0);">'''C&nbsp;:'''</span> Si cette case est cochée, tous les éléments qui contenaient la valeur en <span style="color: rgb(255, 0, 0);">'''B'''</span> se retrouveront vides.  
+
<span style="color: rgb(255, 0, 0);">'''C:'''</span> If this checkbox is checked, all the elements that contain the value at <span style="color: rgb(255, 0, 0);">'''B'''</span> will be empty.  
  
 
|  
 
|  
<span style="color: rgb(255, 0, 0);">'''D&nbsp;:'''</span> Il s'agit du nombre d'éléments dans lesquels la valeur à retirer était spécifiée.  
+
<span style="color: rgb(255, 0, 0);">'''D:'''</span> This is the number of elements in which the value to remove was specified.&nbsp;
  
 
|-
 
|-
 
| colspan="2" |  
 
| colspan="2" |  
'''ATTENTION&nbsp;:''' S'assurer que le nombre d'items en <span style="color: rgb(255, 0, 0);">'''D'''</span> est à '''0''' avant de supprimer une valeur sinon, les éléments qui contiennent cette valeur se retrouveront vides.  
+
'''CAUTION:''' Make sure that the number of items at <span style="color: rgb(255, 0, 0);">'''D'''</span> is down to '''0''' before deleting the value; otherwise, the elements that contain this value will be empty.&nbsp;
  
 
|}
 
|}

Revision as of 20:04, 20 February 2015

Template:Header Common Functions

Introduction

A dynamic drop-down list is a field of the database that is presented in the form of a list of options. It is possible to enter information directly into the field, or to select one of the predefined options. 

The options presented in the list must be defined by a ProDon user directly in the field or from the "Dynamic drop-down list management".


Functioning of a Dynamic Drop-down List

Dymanic Drop-down Lists 001.png

There are 2 ways to specify a value in a dynamic drop-down list field: 

  1. It is possible to click on Dynamic drop-down list button.png to select among the predefined options of the list.
  2. If the desired value is not part of the predefined option list, it is possible to enter a new value in the field.
    NOTE: If a new value is entered in a dynamic drop-down list, this window opens to allow you to add the new entered value to the predefined option list. 

There are 2 ways to delete a value from the dynamic drop-down list:

  1. Via the dynamic drop-down list management.
  2. Select the value to delete among the options (the value must be selected exactly in the same way as the one in the image above) and then click on the "Delete" key of the keyboard.
    NOTE: After clicking on the "Delete" key, this window opens to confirm that the value should really be removed from the list.

To modify an option in the list, you absolutely need to go through the dynamic drop-down list management.


Adding a Value to the Predefined Option List from the Field

After entering a new value in a field of the dynamic drop-down list and this value was not part of the predefined option list, the following window opens.

Dymanic Drop-down Lists 002.png

Click on "Button Check mark Confirm.png Yes" to add a new value to the predefined options of the dynamic drop-down list.

By clicking on "Button cancel.png No", the value remains in the field, but is not added to the dynamic drop-down list. 

NOTE: To define many new options or to modify or remove certain options of the list, see this section.  


Removing a Value from the Predefined Option List from the Field 

After deleting a value from a dynamic drop-down list from a field, the following window opens. 

Dymanic Drop-down Lists 003.png

Click on "Button Check mark Confirm.png Yes" to confirm the removal of the value from the predefined options of the dynamic drop-down list. 

NOTE: To delete many options or to modify or add certain options of the list, see this section


Dynamic Drop-down List Management

The "Dynamic drop-down list management" allows you to add, modify or remove predefined options from the different dynamic drop-down lists in ProDon.

First go to the "Dynamic drop-down list management". 

Dymanic Drop-down Lists 004.png

To do so, from the software's home page, click on the "Configuration" menu, then select "Dynamic drop-down lists".


After clicking on "Dynamic drop-down lists", the following window opens.

Dymanic Drop-down Lists 005.png

A: These are the fields of ProDon that are dynamic drop-down lists. 

B: These are the predefined options of all the dynamic drop-down lists in ProDon.

C: The Button add plus.png button allows you to add a new predefined option to the list mentioned at A. After clicking on that button, this window opens. 

D: The Button Edit.png button allows you to modify an option at B. To do so, select the option to modify, then click on the Button Edit.png button. After clicking on that button, this window opens. 

E: The Button Minus remove delete.png button allows you to delete an option at B. To do so, select the option to modify, then click on the Button Minus remove delete.png button. After clicking on that button, this window opens.

CAUTION: Make sure no element contains the value before deleting it; otherwise, the elements that contain this value will be empty. For more information, see this section.


Adding an Option to the Dynamic Drop-down List from the "Dynamic drop-down list management"

After clicking on the Button add plus.png button, the following window opens. 

Dymanic Drop-down Lists 006.png

A: Select the field of the drop-down list for which an option should be added. 

B: Enter the value of the predefined option.


Modifying an Option of the Dynamic Drop-down List from the "Dynamic drop-down list management" 

After clicking on the Button Edit.png button, the following window opens.

Dymanic Drop-down Lists 007.png

A: Select the field of the drop-down list for which an option should be modified.

B: Enter the new value of the predefined option.

C: If this checkbox is checked, the new value entered at B will be assigned to the elements that contained the old value.

D: This is the number of elements in which the value to modify was specified. 


Removing an Option from the Dynamic Drop-down List from the "Dynamic drop-down list management" 

After clicking on the Button Minus remove delete.png button, the following window opens.

Dymanic Drop-down Lists 008.png

A: This is the field of the dynamic drop-down list for which the option at B should be removed.

B: This is the value that will be removed from the predefined options.

C: If this checkbox is checked, all the elements that contain the value at B will be empty.

D: This is the number of elements in which the value to remove was specified. 

CAUTION: Make sure that the number of items at D is down to 0 before deleting the value; otherwise, the elements that contain this value will be empty. 



Document name: Common functions:Dynamic Drop-down Lists