Changes for page Quellen
To version 6.1
edited by Release Notes
on 19.01.2023, 17:08
on 19.01.2023, 17:08
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. gru1 +XWiki.ReleaseNotes - Content
-
... ... @@ -98,7 +98,7 @@ 98 98 99 99 Bei Zugriff aus dem {{designer case="dat"/}} verwenden Sie immer das globale Variablen-Objekt //XFC_METADATA//, siehe hierzu auch [[Globale Designer Variablen>>https://jsdocs.formcycle.eu/jsdocs/de/modules/_formcycle_v6_de_d_.html#xfc_metadata||target="_blank"]]. Beispielsweise kann wie folgt darauf zugegriffen werden: {{code language="none"}}XFC_METADATA.urls.datasource_csv{{/code}}. 100 100 101 -Always use the global variables object {{code language="none"}}XFC_METADATA{{/code}} when accessing data sources from the {{designer/}}, see also [[global designer variables>>doc:Formcycle. FormDesigner.CodingPanel.ScriptTab.FormMetadata]]. The servlet URK can be accessed as follows: {{code language="none"}}XFC_METADATA.urls.datasource_csv{{/code}}.101 +Always use the global variables object {{code language="none"}}XFC_METADATA{{/code}} when accessing data sources from the {{designer/}}, see also [[global designer variables>>doc:Formcycle.Designer.Form.CodingPanel.ScriptTab.FormMetadata]]. The servlet URK can be accessed as follows: {{code language="none"}}XFC_METADATA.urls.datasource_csv{{/code}}. 102 102 103 103 The following parameters are possible: 104 104 ... ... @@ -110,6 +110,7 @@ 110 110 |spaltenNamen|Indicates a comma seperated list of the column, which columns are redelivered of the //servlet// with the corresponding value. At this, according to using, the names of the columns of the parameter //headline// or the name of the first line of the //CSV// databaseHierbei are expected.|No 111 111 |csvTrennzeichen|Indicates the seperator between the single data cells. If this is not set, a comma {{code language="none"}},{{/code}} is used by default.|No 112 112 |csvQuote|The seperator with which the values of the lines are seperated. If this is not set, a inverted comma {{code language="none"}}"{{/code}} is used by default.| No 113 +|jsonPath {{version major="7" minor="3"/}}|This parameter allows specifying a JSON path expression which will be applied to the returned result of the query on the server side. The example //$.returnValue[0]// returns the values of the first result of the query.|No 113 113 114 114 === Application example === 115 115 ... ... @@ -123,7 +123,7 @@ 123 123 124 124 {{/code}} 125 125 126 -In the {{designer/}} the following script is used in the [[script area>>doc:Formcycle. FormDesigner.CodingPanel.ScriptTab.WebHome]] for pre-filling form fields:127 +In the {{designer/}} the following script is used in the [[script area>>doc:Formcycle.Designer.Form.CodingPanel.ScriptTab.WebHome]] for pre-filling form fields: 127 127 128 128 {{code language="javascript"}} 129 129 $.getJSON( XFC_METADATA.urls.datasource_csv + "?name=Demo&mandantName=xima.de", function(json) { ... ... @@ -147,15 +147,15 @@ 147 147 The connection of a data source to a selection element takes place directly in the {{designer/}} 148 148 {{/figure}} 149 149 150 -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/}}.151 +If the //CSV// data source has to be loaded directly in a [[selection element>>doc:Formcycle.Designer.Form.FormElements.Selection]], this happens via through the properties of the selection element in the {{designer/}}. 151 151 152 -The content of the CSV data source is processed in a [[selection element>>doc:Formcycle. FormDesigner.FormElements.Selection]].153 +The content of the CSV data source is processed in a [[selection element>>doc:Formcycle.Designer.Form.FormElements.Selection]]. 153 153 154 154 {{code language="none"}} 155 155 visible value, assigned value, optional value, optional value, ... 156 156 {{/code}} 157 157 158 -Columns of the data source are use as follows for [[selection elements>>doc:Formcycle. FormDesigner.FormElements.Selection]]:159 +Columns of the data source are use as follows for [[selection elements>>doc:Formcycle.Designer.Form.FormElements.Selection]]: 159 159 {{code language="none"}}col + column index{{/code}}. 160 160 161 161 If a data source has more than two columns than it contains optional values. These optional values can be accessed with JavaScript via the following jQuery selector: ... ... @@ -169,7 +169,7 @@ 169 169 170 170 == XML == 171 171 172 -The XML data source acts analogously to the //CSV// data source, but cannot be bound to a [[selection element>>doc:Formcycle. FormDesigner.FormElements.Selection]].173 +The XML data source acts analogously to the //CSV// data source, but cannot be bound to a [[selection element>>doc:Formcycle.Designer.Form.FormElements.Selection]]. 173 173 174 174 {{figure image="data_source_xml_servlet_json.png" width="300"}} 175 175 The JSON structure of the XML data source. To this JSON structure can than be accessed to {{code language="none"}}XFC_METADATA.urls.datasource_xml{{/code}} via Javascript. ... ... @@ -212,7 +212,7 @@ 212 212 http(s):~/~/<server>/formcycle/datenquellexml?mandantName=<Mandant-Name>&name=<Datenquellen-Name> 213 213 {{/info}} 214 214 215 -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}}.216 +If you access from the {{designer/}}, always use the global variable object //XFC_METADATA//, see also [[global designer variables>>doc:Formcycle.Designer.Form.CodingPanel.ScriptTab.FormMetadata]]. For example it can be accessed as follows: {{code language="javascript"}}XFC_METADATA.urls.datasource_xml{{/code}}. 216 216 217 217 The following parameter are possible: 218 218 ... ... @@ -219,10 +219,11 @@ 219 219 |=Parameter name|=Description|=Neccessary 220 220 |mandantName|Must match the name of the client under which this data source was created.|Yes 221 221 |name|Must match the name of the CSV data source.|Yes 223 +|jsonPath {{version major="7" minor="3"/}}|This parameter allows specifying a JSON path expression which will be applied to the returned result of the query on the server side. The example //$.returnValue[0]// returns the values of the first result of the query.|No 222 222 223 223 == JSON == 224 224 225 -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.227 +The //JSON// data source acts analogously to the //CSV// data source, but cannot be bound to a [[selection element>>doc:Formcycle.Designer.Form.FormElements.Selection]] directly. 226 226 227 227 {{figure image="data_source_json_servlet_json.png"}} 228 228 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 language="none"}}XFC_METADATA.urls.datasource_json{{/code}}. ... ... @@ -252,7 +252,7 @@ 252 252 http(s):~/~/<server>/formcycle/datenquellejson?mandantName=<Mandant-Name>&name=<Datenquellen-Name> 253 253 {{/info}} 254 254 255 -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}}.257 +At an access from the {{designer/}} always use the global variable object //XFC_METADATA//, see also [[global designer variables>>doc:Formcycle.Designer.Form.CodingPanel.ScriptTab.FormMetadata]]. For example you can access as follows: {{code language="javascript"}}XFC_METADATA.urls.datasource_json{{/code}}. 256 256 257 257 The following parameter are possible: 258 258 ... ... @@ -259,3 +259,4 @@ 259 259 |=Parametername|=Description|=Neccessary 260 260 |mandantName| Must match the name of the client under which this data source was created.|Yes 261 261 |name| Must match the name of the CSV data source.|Yes 264 +|jsonPath {{version major="7" minor="3"/}}|This parameter allows specifying a JSON path expression which will be applied to the returned result of the query on the server side. The example //$.returnValue[0]// returns the values of the first result of the query.|No