From version < 8.2 >
edited by nlo
on 10.05.2019, 15:08
To version < 10.1 >
edited by nlo
on 10.05.2019, 15:43
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -8,6 +8,11 @@
8 8  The sources or rather data sources are lodged as text in the format CSV, JSON or XML and can be worked up through the {{designer/}}/the form.
9 9  To have an access to data sources in the script area via javascript too, all data sources are converted into a JSON structure and customized in the object {{code}}XFC_METADATA.urls.datasource_[csv|json|xml]{{/code}}. The structure of this JSON structure for the different data sources is expounded in the respective section.
10 10  
11 +{{info}}
12 +**Servlet URL**
13 +The servlet URL of a data source will be displayed on the configuration screen (see point 4 in [[figure>>||anchor="fig_data_source"]]) and is provided in the JS object {{code}}XFC_METADATA.urls.datasource_[csv|json|xml]{{/code}}.
14 +{{/info}}
15 +
11 11  == Creating a data source ==
12 12  
13 13  Open the module "Data > Sources" and click the button "New" {{ficon name="plus-circle-outline"/}} in the header of the list (see point 1 in [[figure>>||anchor="fig_data_source"]]). After that you will be prompted to either create an empty data source or import one from a file. Three types of data sources can be created: //XML//, //CSV// und //JSON//.
... ... @@ -28,28 +28,28 @@
28 28  * **JSON**: //.json//
29 29  
30 30  {{id name="data_source_import_csv"/}}
31 -__CSV-Datenquellen__
36 +__CSV data sources__
32 32  
33 -CSV-Datenquellen können aus unterschiedlichen Dateitypen importiert werden:
38 +CSV data sources can be imported from different file types:
34 34  
35 35  * //.csv//
36 -Es öffnet sich ein Dialog zur Konfiguration des Imports:
37 -** **Trennzeichen**: Gibt an welches Trennzeichen in der Datei verwendet wird, um Datenfelder/Spalten voneinander zu trennen (typischerweise: Komma).
38 -** **Textqualifizierer**: Gibt an welches Feldbegrenzerzeichen in der Datei verwendet wird. Dieses Zeichen wird verwendet, um Sonderzeichen innerhalb der Datenfelder nutzen zu können (z. B. Komma in Dezimalzahlwerten).
39 -** **Beginnen ab Zeile**: Gibt an, ab welcher Zeile die CSV-Datei importiert werden soll.
40 -** **Leere Zeilen ignorieren**: Wenn aktiviert werden leere Zeilen beim Import ignoriert.
41 +Opens up a dialog for configuring the import:
42 +** **Delimiter**: Determines which symbol is used in the file for separating data fields/ colunms (typically: comma).
43 +** **Text qualifier**: Determines the text qualifier. This symbol is used to support special characters inside data fields (e.g. comma in numbers with decimal places).
44 +** **Start at line**: Determines where to start importing the data source from.
45 +** **Ignore empty lines**: When activated ignores empty lines during import.
41 41  
42 -{{lightbox image="data_source_import_csv_de.png" title="Importdialog für CSV-Dateien"/}}
47 +{{lightbox image="data_source_import_csv_en.png" title="Import dialog for CSV files"/}}
43 43  
44 44  * //.xls//, //.xlsx//
45 -Es öffnet sich ein Dialog zur Konfiguration des Imports:
46 -** **Zu importierende Tabellen**: Gibt an welche Arbeitsblätter/Tabellen aus der Datei importiert werden sollen.
50 +Opens up a dialog for configuring the import:
51 +** **Sheets to import**: Determines which worksheets/tables should be imported from the file.
47 47  
48 -{{lightbox image="data_source_import_excel_de.png" title="Importdialog für Excel-Dateien"/}}
53 +{{lightbox image="data_source_import_excel_en.png" title="Importdialog für Excel-Dateien"/}}
49 49  
50 50  __Drag&Drop__
51 51  
52 -Datenquellen nnen auch per Drag&Drop importiert werden. Wird eine Datei über die Liste (grüner Bereich gezogen), so wird eine neue Datenquelle vom entsprechenden Typ angelegt (bei Excel-Dateien wird eine Datenquelle pro Arbeitsblatt angelegt). Wird die Datenquelle allerdings über den Editierbereich einer bereits existierenden Datenquelle gezogen, so wird diese aktualisiert. Die Änderungen werden allerdings erst mit einem Klick auf "Speichern" {{icon name="save"/}} übernommen.
57 +Data sources can be imported by Drag&Drop as well. If a file is being dropped over the list (green area) than a new data source of the corresponding type will be created (for Excel files: one data source per worksheet will be created). If a file is being dropped over an existing data source than it will be updated. Changes will only take effect after the "Save" {{icon name="save"/}} button is clicked.
53 53  
54 54  == CSV ==
55 55  
Copyright 2000-2024