... |
... |
@@ -9,16
+9,12 @@ |
9 |
9 |
== Creating a database query == |
10 |
10 |
|
11 |
11 |
{{id name="data_db_query"/}} |
12 |
|
-{{figure image="data_db_query_de.png"}}Configuration screen for creating a database query in: (1) list of existing DB queries, (2) editor for defining the SQL query, (3) settings of the DB query, (4) console for testing the DB query.{{/figure}} |
|
12 |
+{{figure image="data_db_query_de.png"}}Creating a database query in {{formcycle case="dat"/}}{{/figure}} |
13 |
13 |
|
14 |
|
-* Open the module "Database queries" and click "New" {{ficon name="plus-circle-outline"/}} in the header of the list (see [[figure>>||anchor="fig_data_db_query"]]). |
15 |
|
-* The following data is needed for a Database query: |
16 |
|
-** **Name**: A unique name for the database query |
17 |
|
-** **Description**: An optional description for the database query |
18 |
|
-** **Connection**: The [[Database connection>>doc:DBConnections]] that should be used |
|
14 |
+* Enter a unique name. |
|
15 |
+* Select a database connection |
|
16 |
+* Enter the SQL statement to be executed for the query in the editor (see [[figure>>||anchor="data_db_query"]]). |
19 |
19 |
|
20 |
|
-* Enter the **SQL statement** to be executed for the query in the editor (see [[figure>>||anchor="data_db_query"]]). |
21 |
|
- |
22 |
22 |
The entered SQL statement is executed as a prepared statement, which prevents SQL injection attacks. You should not and need not use inverted commas (` or '). Also, you can use question marks ( ? ) as placeholders to build queries dynamically. |
23 |
23 |
|
24 |
24 |
== Using the database query == |
... |
... |
@@ -52,9
+52,6 @@ |
52 |
52 |
{{figure image="002En.png"}} |
53 |
53 |
Setting up a selection element with data from a database query. Just select the database query as the data source. |
54 |
54 |
{{/figure}} |
55 |
|
-{{figure image="data_db_query_designer_en.png"}} |
56 |
|
-Verwenden des Ergebnises einer Datenbankabfrage als Auswahlelement im {{designer case="dat"/}}. |
57 |
|
-{{/figure}} |
58 |
58 |
|
59 |
59 |
The result of the database query is used to create the options of the [[selection element>>doc:Formcycle.FormDesigner.FormElements.Selection]] in the following order: |
60 |
60 |
|