Difference between revisions of "Module Exports En"

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
m
(Add Chinese)
Tag: 2017 source edit
 
(31 intermediate revisions by 6 users not shown)
Line 1: Line 1:
[[Category:Admin]]
+
<!-- BEGIN origin interlang links -->
 +
<!-- You can edit this section but do NOT remove these comments
 +
    Links below will be automatically replicated on translated pages by PolyglotBot -->
 +
[[fr:Module_Exports]]
 +
[[es:Módulo_Exportaciones]]
 +
[[zh:导出模块]]
 +
<!-- END interlang links -->
 +
 
 +
[[Category:Admin_en]]
 
[[Category:ExportsEn]]
 
[[Category:ExportsEn]]
 
{{TemplateDocUser}}
 
{{TemplateDocUser}}
 +
{{TemplateModEN}}
 +
{{BasculeDevUserEn|
 +
name=Exports|
 +
num=240|
 +
devdoc=This page|
 +
userdoc=This page}}
 +
 +
= Introduction =
 +
To export Dolibarr data, use the Export module.
 +
Bulk imports are described in the page [[Mass imports]].
 +
 +
= Installation =
 +
{{NoInstallModuleEn}}
 +
 +
= Configuration =
 +
{{ActivationModuleEn}}
 +
 +
= Usage =
 +
# Go to Menu-> Tools -> New Export and choose a predefined dataset.
 +
# Choose a predefined (by you) export profile or manually choose the fields you want to include in the export file.
 +
# Add any filters you may wish to place on the values of those fields.
 +
# Change the position/column of the fields in the export file. You may save the selections you have made as an export profile/template for future use.
 +
# Choose a format for the export file from the dropdown list. Possible formats are CSV / TSV (Text files) or XLS 2007 / 95 (native Excel files). Click on Generate.
 +
After few seconds, a link to the file is shown for download.
  
To export Dolibarr data, there is several solutions described here.
+
= [[File:Outils.png]] Develop your own export script =
Solutions to make mass imports are described in the page [[Mass imports]]
+
If there is no predefined dataset that matches your needes and you have program knowledge, you can also develop your own script.
 +
Any language can be used if this language can read a database.
 +
You just have to read the table of the entity you want to export and build a file, using the format of your choice, from any fields available in table.
 +
The only thing to know is which table contains data you want to export.
 +
To help you, the page [[:Category:Table SQL|Table SQL]] lists all the tables used in Dolibarr.
  
= Use the Dolibarr export module =
+
Note that versions above 2.6 allow "admin" users to see the SQL code that was used to build the export file content when using the Export module. This is shown at the moment of file generation.
{{ToTranslate}}
 
The Exports module allows yous to make personalise exports of data using an assistant. You should be able to export data with no technical knowledges.
 
# First step is to enable the export module. Then go on menu Tools - Export and choose a predefined dataset.
 
# Then choose fields you wan in your output files, and in which order.
 
# Once data are selected, you can choose the format of the output file build by clicking on the "Build" button.
 
# After few seconds, a file is available for download.
 
Possible formats are csv and tsv (Text files) or xls (Native Excel files)
 
  
 +
=Related videos=
 +
Export:
 +
(vocal in french but subtitles are available and review in this language)
  
= Develop your own export script =
+
<youtube width="200" height="120">dc8wfS6VoZ0</youtube>
{{ToTranslate}}
 
N'importe quel langage peut faire l'affaire du moment que vous pouvez lire la base de donnée.
 
Il vous suffit de lire la table de l'entité qui vous intéresse et de fabriquer un fichier export au format qu'il vous plaira
 
à partir des données de cette table.
 
Le seul prérequis est donc de connaitre la table qui contient les données qui vous intéressent.
 
Pour vous y aider, la page [[Liste des tables]] vous présente la liste des tables de Dolibarr
 

Latest revision as of 02:47, 11 September 2023

Exports
Numero/ID of module 240
User doc. of module This page
Developer doc. of module This page

Introduction

To export Dolibarr data, use the Export module. Bulk imports are described in the page Mass imports.

Installation

This module is included with the Dolibarr distribution, so there is no need to install it.

Configuration

To use this module, you must first enable it using an administrator account, via the menu option "Home - Setup - Modules".

Choose the tab where the module is listed. Then click on "Activate".

The module is now activated.

If a cog icon appears Cog circle.svg on module thumb or at end of the line of the module, click on it to access the setup page specific to the module.

Usage

  1. Go to Menu-> Tools -> New Export and choose a predefined dataset.
  2. Choose a predefined (by you) export profile or manually choose the fields you want to include in the export file.
  3. Add any filters you may wish to place on the values of those fields.
  4. Change the position/column of the fields in the export file. You may save the selections you have made as an export profile/template for future use.
  5. Choose a format for the export file from the dropdown list. Possible formats are CSV / TSV (Text files) or XLS 2007 / 95 (native Excel files). Click on Generate.

After few seconds, a link to the file is shown for download.

Outils.png Develop your own export script

If there is no predefined dataset that matches your needes and you have program knowledge, you can also develop your own script. Any language can be used if this language can read a database. You just have to read the table of the entity you want to export and build a file, using the format of your choice, from any fields available in table. The only thing to know is which table contains data you want to export. To help you, the page Table SQL lists all the tables used in Dolibarr.

Note that versions above 2.6 allow "admin" users to see the SQL code that was used to build the export file content when using the Export module. This is shown at the moment of file generation.

Related videos

Export: (vocal in french but subtitles are available and review in this language)