(Update with the copy of version:DRAFT)
m (1 révision importée)
Ligne 1 : Ligne 1 :
=Provisioning en masse des options de configuration=
+
=Bulk Provisioning of Configuration Options=
{{#anc:Bulk Provisioning of Configuration Options}}
+
To create or modify the configuration options for an option, you can upload a [[BulkOpt#csv|comma-separated value (CSV) file]] containing new and/or changed options and values. You enter or modify options and values in the appropriate columns object. When uploaded to GAX, the options listed in the file are created or modified, based on the action to be taken as indicated in the Action column.
Pour créer ou modifier les options de configuration d’une option, vous pouvez télécharger un [[BulkOpt#csv|fichier de valeurs séparées par des virgules (CSV)]] contenant les options et les valeurs nouvelles et/ou modifiées. Saisissez ou modifiez les valeurs et les options dans les colonnes appropriées pour chaque objet. Lors du téléchargement dans GAX, les options indiquées dans le fichier sont créées ou modifiées, conformément à l'action définie dans la colonne Action.
 
  
Vous pouvez également utiliser GAX pour télécharger (ou exporter) des informations pour les options sélectionnées. Si vous le souhaitez, vous pouvez utiliser ce téléchargement pour créer un "modèle" pour les données de téléchargement.  
+
You can also use GAX to download (or export) information for selected options. If you want, you can use this download to create a "template" for the data upload.  
  
Cette fonctionnalité d’importation/exportation d’options de configuration n’est disponible que pour certains types d’objets.
+
This import/export of configuration options functionality is available for all object types.
  
 
{{AnchorDiv|export}}
 
{{AnchorDiv|export}}
{{#anc:Exporting Options}}
+
==Exporting Options==
==Exportation des options==
+
GAX allows you to export selected options into a spreadsheet. You can modify the spreadsheet as required, save it as a '''.csv''' or '''.cfg''' file, and [[BulkOpt#upload|upload]] it back into GAX.  Or, you can remove the data (but not the column headers) from it, and use this "empty" template for present and future uploads of configuration options.
GAX vous permet d’exporter les options sélectionnées dans une feuille de calcul. Vous pouvez modifier la feuille de calcul selon les besoins, l’enregistrer dans un fichier '''.csv''' ou '''.cfg''', et la [[BulkOpt#upload|télécharger]] de nouveau dans GAX.  Ou bien, vous pouvez supprimer les données (mais pas les en-têtes de colonne) et utiliser ce modèle "vide" pour les téléchargements actuels et futurs d’options de configuration.
 
  
Pour exporter les options, procédez comme suit :
+
To export options, do the following:
<toggledisplay linkstyle font-size:larger showtext="[+] Afficher les étapes" hidetext="[-] Masquer les étapes">
 
 
<ol>
 
<ol>
<li> Dans le Configuration Manager, ouvrez l’onglet Options de l’objet à partir duquel vous souhaitez exporter des options.</li>
+
<li> In Configuration Manager, open the Options tab of the object from which you want to export options.</li>
<li> Sélectionnez les sections et les options à exporter.</li>
+
<li> Select the sections and options to be exported.</li>
<li> Cliquez sur '''Exporter''' dans le menu '''Plus''' menu situé au-dessus de la liste des options dans le coin droit.</li>
+
<li> Click '''Export''' in the '''More''' menu located above the option list in the right corner.</li>
<li> Dans la boîte de dialogue '''Exporter des options''', sélectionnez le format du fichier de sortie, soit CFG ou CSV et cliquez sur '''Exporter'''.<br/>
+
<li> In the '''Export Options''' dialog box, select the format of the output file, either CFG or CSV, and click '''Export'''.<br/>
Le fichier de sortie est créé et téléchargé dans votre navigateur, avec un nom au format de fichier<br/>
+
The output file is created and downloaded to your browser, with a filename in the format<br/>
&nbsp;&nbsp;&nbsp;&nbsp; '''<object type>_annex_<object DBID>.csv ou cfg'''<br/>
+
&nbsp;&nbsp;&nbsp;&nbsp; '''<object type>_annex_<object DBID>.csv or cfg'''<br/>
Par exemple :<br/>
+
For example:<br/>
&nbsp;&nbsp;&nbsp;&nbsp; '''CfgPerson_annex_6378.cfg''' ou '''CfgPerson_annex_6378.cfg'''
+
&nbsp;&nbsp;&nbsp;&nbsp; '''CfgPerson_annex_6378.cfg''' or '''CfgPerson_annex_6378.cfg'''
 
</li>
 
</li>
 
</ol>
 
</ol>
</toggledisplay>
 
  
 
{{AnchorDiv|upload}}
 
{{AnchorDiv|upload}}
  
{{#anc:Uploading a File}}
+
==Uploading a File==
==Téléchargement d’un fichier==
+
Before uploading bulk updates, you must enter the data into a spreadsheet and save it as a CSV file. Keep in mind the following recommendations:
Avant de télécharger des mises à jour en masse, vous devez entrer les données dans une feuille de calcul et enregistrer cette dernière au format CSV. N’oubliez pas les recommandations suivantes :
+
* If most of your updates are adding new options to the object, create an empty template and fill in the appropriate values.  
* Si la plupart de vos mises à jour ajoutent de nouvelles options à l’objet, créez un modèle vide et indiquez les valeurs appropriées.  
+
* If you are primarily making changes to existing options, [[BulkOpt#export|export]] only the options that you are changing, and make the changes.
* Si vous effectuez principalement des modifications à des options existantes, [[BulkOpt#export|exportez]] uniquement les options que vous modifiez et apportez les modifications souhaitées.
 
  
Pour télécharger les données dans GAX, procédez comme suit :   
+
To upload the data into GAX, do the following:   
<toggledisplay linkstyle font-size:larger showtext="[+] Afficher les étapes" hidetext="[-] Masquer les étapes">
 
 
<ol>
 
<ol>
<li> Dans Configuration Manager, ouvrez l’onglet '''Options''' de l’objet vers lequel vous souhaitez télécharger les options.</li>
+
<li> In Configuration Manager, open the '''Options''' tab of the object into which you want to upload the options.</li>
<li> Cliquez sur '''Importer''' dans le menu '''Plus''' menu situé au-dessus de la liste des options dans le coin droit.</li>
+
<li> Click '''Import''' in the '''More''' menu located above the option list in the right corner.</li>
<li> Dans la boîte de dialogue '''Importer des objets''' :
+
<li> In the '''Import Objects''' dialog box:
 
<ol type=a>
 
<ol type=a>
<li> Cliquez sur '''Choisir un fichier''' et sélectionnez le fichier .csv ou .cfg avec vos modifications.</li>
+
<li> Click '''Choose File''' and select the .csv or .cfg file with your changes.</li>
<li>Sélectionnez '''Remplacer les options existantes''' si vous êtes sûr que votre fichier contient la valeur exacte et à jour de toutes les options existantes dans l’objet. Dans le cas contraire, laissez cette case décochée.</li>
+
<li> Select '''Overwrite existing options''' if you are sure that your file contains the accurate and most up-to-date current value for any options that may already exist in the object. Otherwise, leave it blank.</li>
<li>Cliquez sur '''Télécharger'''.</li>  
+
<li>Click '''Upload'''.</li>  
 
</ol></li>
 
</ol></li>
<li>Lorsque les enregistrements ont été traités, la boîte de dialogue '''Opération terminée''' s’affiche avec un résumé des résultats. Cliquez sur '''Fermer''' pour revenir à l’onglet '''Options'''.</li>
+
<li>When the records have been processed, the '''Operation Concluded''' dialog box is displayed, showing a summary of the results. Click '''Close''' to return to the '''Options''' tab.</li>
 
</ol>
 
</ol>
</toggledisplay>
 
  
 
{{AnchorDiv|csv}}
 
{{AnchorDiv|csv}}
{{#anc:Source File}}
+
==Source File==
==Fichier source==
+
GAX uses '''.csv''' (comma separated value) and '''.cfg''' files for the import and export of configuration options. Both formats support only the import and export of string options. Other types of configuration options are ignored and not imported or exported. All strings in this file must be encoded in UTF-8.
GAX utilise des fichiers '''.csv''' (valeurs séparées par des virgules) et '''.cfg''' pour l’importation et l’exportation des options de configuration. Ces deux formats prennent en charge uniquement l'importation et l'exportation des options de type chaîne. Les autres types d'options de configuration sont ignorés et ne sont ni importés ni exportés. Toutes les chaînes de ce fichier doivent être codées au format UTF-8.
 
  
{{NoteFormat|Le contenu du fichier se rapporte à un seul objet.}}
+
{{NoteFormat|The contents of the file relates to only one object.}}
  
 
<tabber>
 
<tabber>
Fichiers CSV=
+
CSV Files=
Dans un fichier CSV source, chaque ligne représente une option de configuration unique. La même option ne peut apparaître qu'une seule fois dans le fichier source. Si la section d’options de configuration n’existe pas déjà dans la configuration de l’objet, celle-ci est créée. L’identifiant unique de l’option dans le cadre du fichier source est la combinaison des champs <tt>Section </tt> et <tt>Clé</tt>.
+
In a CSV source file, each line represents a single configuration option. The same option can appear in the source file only once. If the configuration options section does not already exist in the object's configuration, it is created. The unique identifier of the option in the scope of the source file is the combination of the <tt>Section </tt> and <tt>Key</tt> fields.
  
Il existe trois colonnes dans le fichier&mdash;Une pour la section d’option de configuration, une pour le nom de l’option (Clé) et une pour la valeur de l’option, d’après les entrées de la première ligne du fichier&mdash;Section, Clé et Valeur. L'ordre des colonnes n'a pas d'importance. Une virgule est insérée après chaque entrée de colonne.
+
There are three columns in the file&mdash;one each for the configuration option section, the name of the option (Key), and the option value, named by the entries in the first row of the file&mdash;Section, Key, and Value. The order of the columns is not important. A comma is inserted after each column entry.
  
Le fichier source contient les informations suivantes pour chaque option :
+
The source file contains the following information for each option:
<toggledisplay linkstyle font-size:larger showtext="[+] Afficher les propriétés" hidetext="[-] Masquer les propriétés">
 
 
{|
 
{|
! '''Nom'''
+
! '''Name'''
 
! '''Type'''
 
! '''Type'''
! '''Obligatoire'''
+
! '''Mandatory'''
 
! '''Description'''
 
! '''Description'''
 
|-
 
|-
 
| Section
 
| Section
| Chaîne
+
| String
| Oui
+
| Yes
| Nom du fichier de configuration.
+
| The name of the configuration file.
 
|-
 
|-
| Clé
+
| Key
| Chaîne
+
| String
| Oui
+
| Yes
| Nom de l’option
+
| The name of the option
 
|-
 
|-
| Valeur
+
| Value
| Chaîne
+
| String
| Non
+
| No
| Nouvelle valeur de l'option.
+
| The new value of the option.
 
|}
 
|}
</toggledisplay>
 
  
 
|-|
 
|-|
Fichiers CFG=
+
CFG Files=
Dans un fichier CFG, chaque section et option apparaît sur une ligne distincte avec les noms de section entre crochets. Chaque section est suivie de la liste des options de cette section avec les valeurs appropriées, telles que :
+
In a CFG file, each section and option appears on a separate line, with section names in square brackets. Each section is followed by a list of options in that section, with the appropriate values, such as:
 
<source lang="text">
 
<source lang="text">
 
[section_name1]
 
[section_name1]
Ligne 104 : Ligne 94 :
  
 
{{AnchorDiv|eg}}
 
{{AnchorDiv|eg}}
{{#anc:Example}}
+
===Example===
===Exemple===
+
The following data is to be uploaded to GAX to add two new options for an existing User object:
Les données suivantes doivent être téléchargées dans GAX pour ajouter deux nouvelles options à un objet Utilisateur existant :
 
<toggledisplay linkstyle font-size:larger showtext="[+] Afficher les données" hidetext="[-] Masquer les données">
 
 
{|
 
{|
 
! Section
 
! Section
! Clé
+
! Key
! Valeur
+
! Value
 
|-
 
|-
 
| gaxproperties
 
| gaxproperties
Ligne 121 : Ligne 109 :
 
| Agent
 
| Agent
 
|}
 
|}
</toggledisplay>
 
  
Le fichier CSV pour cet exemple pourrait se présenter comme suit :
+
The CSV file for this would look like this:
 
<source lang="text">
 
<source lang="text">
 
Section,Key,Value
 
Section,Key,Value
Ligne 130 : Ligne 117 :
 
</source>
 
</source>
  
Exportées à partir de GAX sous forme d’un fichier CFG, les mêmes informations seraient présentées comme suit :
+
Exported from GAX as a CFG file, the same information would look like this:
 
<source lang="text">
 
<source lang="text">
 
[gaxproperties]
 
[gaxproperties]

Version du mai 10, 2019 à 17:10

Bulk Provisioning of Configuration Options

To create or modify the configuration options for an option, you can upload a comma-separated value (CSV) file containing new and/or changed options and values. You enter or modify options and values in the appropriate columns object. When uploaded to GAX, the options listed in the file are created or modified, based on the action to be taken as indicated in the Action column.

You can also use GAX to download (or export) information for selected options. If you want, you can use this download to create a "template" for the data upload.

This import/export of configuration options functionality is available for all object types.

Exporting Options

GAX allows you to export selected options into a spreadsheet. You can modify the spreadsheet as required, save it as a .csv or .cfg file, and upload it back into GAX. Or, you can remove the data (but not the column headers) from it, and use this "empty" template for present and future uploads of configuration options.

To export options, do the following:

  1. In Configuration Manager, open the Options tab of the object from which you want to export options.
  2. Select the sections and options to be exported.
  3. Click Export in the More menu located above the option list in the right corner.
  4. In the Export Options dialog box, select the format of the output file, either CFG or CSV, and click Export.
    The output file is created and downloaded to your browser, with a filename in the format
         <object type>_annex_<object DBID>.csv or cfg
    For example:
         CfgPerson_annex_6378.cfg or CfgPerson_annex_6378.cfg

Uploading a File

Before uploading bulk updates, you must enter the data into a spreadsheet and save it as a CSV file. Keep in mind the following recommendations:

  • If most of your updates are adding new options to the object, create an empty template and fill in the appropriate values.
  • If you are primarily making changes to existing options, export only the options that you are changing, and make the changes.

To upload the data into GAX, do the following:

  1. In Configuration Manager, open the Options tab of the object into which you want to upload the options.
  2. Click Import in the More menu located above the option list in the right corner.
  3. In the Import Objects dialog box:
    1. Click Choose File and select the .csv or .cfg file with your changes.
    2. Select Overwrite existing options if you are sure that your file contains the accurate and most up-to-date current value for any options that may already exist in the object. Otherwise, leave it blank.
    3. Click Upload.
  4. When the records have been processed, the Operation Concluded dialog box is displayed, showing a summary of the results. Click Close to return to the Options tab.

Source File

GAX uses .csv (comma separated value) and .cfg files for the import and export of configuration options. Both formats support only the import and export of string options. Other types of configuration options are ignored and not imported or exported. All strings in this file must be encoded in UTF-8.

Important
The contents of the file relates to only one object.

In a CSV source file, each line represents a single configuration option. The same option can appear in the source file only once. If the configuration options section does not already exist in the object's configuration, it is created. The unique identifier of the option in the scope of the source file is the combination of the Section and Key fields. There are three columns in the file—one each for the configuration option section, the name of the option (Key), and the option value, named by the entries in the first row of the file—Section, Key, and Value. The order of the columns is not important. A comma is inserted after each column entry. The source file contains the following information for each option:

Name Type Mandatory Description
Section String Yes The name of the configuration file.
Key String Yes The name of the option
Value String No The new value of the option.

In a CFG file, each section and option appears on a separate line, with section names in square brackets. Each section is followed by a list of options in that section, with the appropriate values, such as:

[section_name1]
option-name1=option_value2
...
option_nameN=option_valueN

[section_name2]
option-nameN+1=option_valueN+1
...

Example

The following data is to be uploaded to GAX to add two new options for an existing User object:

Section Key Value
gaxproperties datemodified 1478163902397
htcc roles Agent

The CSV file for this would look like this:

Section,Key,Value
gaxproperties,datemodified,1478163902397
htcc,roles,Agent

Exported from GAX as a CFG file, the same information would look like this:

[gaxproperties]
datemodified=1478163902397
[htcc]
roles=Agent
Comments or questions about this documentation? Contact us for support!