From version < 8.1 >
edited by nlo
on 09.05.2019, 16:58
To version < 4.1 >
edited by gru
on 25.03.2019, 11:57
< >
Change comment: Copied from xwiki:Main.UserInterface.Data.Sources

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.nlo
1 +XWiki.gru
Content
... ... @@ -1,10 +1,5 @@
1 1  {{content/}}
2 2  
3 -{{id name="fig_data_source"/}}
4 -{{figure image="data_source_en.png" }}
5 -Configuration screen for creating data sources: (1) list of existing data sources, (2) area for editing the selected data source, (3) settings panel of the data source, (4) servlet URL for accessing the data source.
6 -{{/figure}}
7 -
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  
... ... @@ -39,7 +39,7 @@
39 39  http(s):~/~/<server>/formcycle/datenquellecsv?mandantName=<Mandant-Name>&name=<Datenquellen-Name>
40 40  {{/info}}
41 41  
42 -At an access of the {{designer/}} always use the global variables object //XFC_METADATA//, see also [[global designer variables>>doc:Formcycle.FormDesigner.CodingPanel.ScriptTab.FormMetadata]]. For example it can be accessed as follows: {{code}}XFC_METADATA.urls.datasource_csv{{/code}}.
37 +At an access of the {{designer/}} always use the global variables object //XFC_METADATA//, see also [[global designer variables>>doc:Formular-Metadaten]]. For example it can be accessed as follows: {{code}}XFC_METADATA.urls.datasource_csv{{/code}}.
43 43  
44 44  The following parameters are possible:
45 45  
... ... @@ -68,7 +68,7 @@
68 68  
69 69  
70 70  
71 -In the {{designer/}} the following script is used in the [[script area>>doc:Formcycle.FormDesigner.CodingPanel.ScriptTab.WebHome]].
66 +In the {{designer/}} the following script is used in the [[script area>>doc:TAB - Script]].
72 72  
73 73  {{code language="javascript"}}
74 74  $.getJSON( XFC_METADATA.urls.datasource_csv + "?name=Demo&mandantName=xima.de", function(json) {
... ... @@ -88,19 +88,19 @@
88 88  
89 89  === Exeption selection element ===
90 90  
91 -{{figure image="data_source_csv_designer_de.png"}}
86 +{{figure image="089En.png" width="300"}}
92 92  The connection of a data source to a selection element takes place directly in the {{designer/}}
93 93  {{/figure}}
94 94  
95 -If the //CSV// data source has to be loaded directly in a [[selection element>>doc:Formcycle.FormDesigner.FormElements.Selection]], this happens via through the properties of the selection element in the {{designer/}}.
90 +If the //CSV// data source has to be loaded directly in a [[selection element>>doc:Auswahl]], this happens via through the properties of the selection element in the {{designer/}}.
96 96  
97 -The content of the CSV data source is processed in a [[selection element>>doc:Formcycle.FormDesigner.FormElements.Selection]].
92 +The content of the CSV data source is processed in a [[selection element>>doc:Auswahlelement]].
98 98  
99 99  {{code}}
100 100  visible value, assigned value, optional value, optional valuesichtbarer wert, ...
101 101  {{/code}}
102 102  
103 -If more than the visible and the assigned value are indicated, so optional values, the can be invoked in JavaScript through the following jQuery selector.
98 +If more than the visible and the assigned value are indicated, so optional values, the can be invoked in Javascript through the following jQuery selector.
104 104  
105 105  {{code language="javascript"}}
106 106  $('[name=sel2]').find('option:selected').attr('col0');
... ... @@ -110,7 +110,7 @@
110 110  
111 111  == XML ==
112 112  
113 -The XML data source acts analogously to the //CSV// data source, but cannot be bound to a [[selection element>>doc:Formcycle.FormDesigner.FormElements.Selection]].
108 +The XML data source acts analogously to the //CSV// data source, but cannot be bound to a [[selection element>>doc:Auswahl]].
114 114  
115 115  {{figure image="datenquelle_xml.png" width="300"}}
116 116  The JSON structure of the XML data source. To this JSON structure can than be accessed to {{code}}XFC_METADATA.urls.datasource_[csv|json|xml]{{/code}} via Javascript.
... ... @@ -153,7 +153,7 @@
153 153  http(s):~/~/<server>/formcycle/datenquellexml?mandantName=<Mandant-Name>&name=<Datenquellen-Name>
154 154  {{/info}}
155 155  
156 -If you access from the {{designer/}}, always use the global variable object //XFC_METADATA//, see also [[global designer variables>>doc:Formcycle.FormDesigner.CodingPanel.ScriptTab.FormMetadata]]. For example it can be accessed as follows: {{code language="javascript"}}XFC_METADATA.urls.datasource_xml{{/code}}.
151 +If you access from the {{designer/}}, always use the global variable object //XFC_METADATA//, see also [[global designer variables>>doc:Formular-Metadaten]]. For example it can be accessed as follows: {{code language="javascript"}}XFC_METADATA.urls.datasource_xml{{/code}}.
157 157  
158 158  The following parameter are possible:
159 159  
... ... @@ -163,7 +163,7 @@
163 163  
164 164  == JSON ==
165 165  
166 -The //JSON// data source acts analogously to the //CSV// data source, but cannot be bound to a [[selection element>>doc:Formcycle.FormDesigner.FormElements.Selection]] directly.
161 +The //JSON// data source acts analogously to the //CSV// data source, but cannot be bound to a [[selection element>>doc:Auswahl]] directly.
167 167  
168 168  {{figure image="datenquelle_json.png" width="300"}}
169 169  The JSON structure of the JSON data source. It is identically equal to the JSON data source. This JSON structure can be accessed via Javascript through {{code}}XFC_METADATA.urls.datasource_[csv|json|xml]{{/code}}.
... ... @@ -193,7 +193,7 @@
193 193  http(s):~/~/<server>/formcycle/datenquellejson?mandantName=<Mandant-Name>&name=<Datenquellen-Name>
194 194  {{/info}}
195 195  
196 -At an access from the {{designer/}} always use the global variable object //XFC_METADATA//, see also [[global designer variables>>doc:Formcycle.FormDesigner.CodingPanel.ScriptTab.FormMetadata]]. For example you can access as follows: {{code language="javascript"}}XFC_METADATA.urls.datasource_json{{/code}}.
191 +At an access from the {{designer/}} always use the global variable object //XFC_METADATA//, see also [[global designer variables>>doc:Formular-Metadaten]]. For example you can access as follows: {{code language="javascript"}}XFC_METADATA.urls.datasource_json{{/code}}.
197 197  
198 198  The following parameter are possible:
199 199  
Copyright 2000-2024