From version < 8.3 >
edited by nlo
on 10.05.2019, 15:29
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//.
... ... @@ -45,12 +45,11 @@
45 45  Opens up a dialog for configuring the import:
46 46  ** **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 -Data sources can be imported by Drag&Drop as well.
53 -Datenquellen kö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.
54 54  
55 55  == CSV ==
56 56  
Copyright 2000-2024