@@ -4,7 +4,6 @@ url: /howto/integration/use-the-external-database-connector
44weight : 21
55description : " Overview of the External Database Connector in Studio Pro"
66
7-
87# If moving or renaming this doc file, implement a temporary redirect and let the respective team (buildpack) know they should update the URL in the product. See Mapping to Products for more details.
98---
109
@@ -32,7 +31,7 @@ Let's assume that you already have Mendix app.
3231
3332* Download the [ External Database Connector] ( https://marketplace.mendix.com/link/component/219862 ) from the Mendix Marketplace into your app.
3433
35- * ** username ** and ** password ** for signing into the external database
34+ * ** Username ** and ** Password ** for signing into the external database
3635* Connection details: ** Host** , ** Port** , ** Database name**
3736
3837if additional connection properties are required to connect, you can alternatively use ** “JDBC Connection String”** .
@@ -69,10 +68,14 @@ Once connection is successful and saved, you can explore and search **Tables & V
6968
7069### 3. Create and Validate SQL Queries with Parameters:
7170
72- a. Create new query by entering ** SQL Query** in SQL query editor box.
73- b. Add ** Parameters** if you want to use mendix constants or variables in your query during runtime(use curly braces to include parameters in query).
74- c. Testvalue should be assigned to the parameter using ** Add Parameter** .
75- d. ** Run Query** to validate query and see the response.
71+ 1 . Create new query by entering ** SQL Query** in SQL query editor box.
72+
73+ 2 . Add ** Parameters** if you want to use mendix constants or variables in your
74+ query during runtime(use curly braces to include parameters in query).
75+
76+ 3 . Testvalue should be assigned to the parameter using ** Add Parameter** .
77+
78+ 4 . ** Run Query** to validate query and see the response.
7679
7780for example:
7881Below query retrieves list of RequestedProductRequirement where ProductLine is "Planes"
@@ -83,29 +86,37 @@ SQL Query :
8386
8487### 4a. Save Query & Create Enity:
8588
86- a. For query which returns a resultset, click ** Use Response** to create mapping.
87- b. In ** Response Structure** you can see Entity preview.
88- c. Click on ** Save Query & Create Enity** to save query and a new Entity is created in the domain model using response structure.
89+ 1 . For query which returns a resultset, click ** Use Response** to create mapping.
90+
91+ 2 . In ** Response Structure** you can see Entity preview.
92+
93+ 3 . Click on ** Save Query & Create Enity** to save query and a new Entity is created in the domain model using response structure.
8994
9095{{< figure src="/attachments/howto/integration/use-the-external-database-connector/5.png" >}}
9196
9297### 4b. Save Query:
9398
94- a . For DML queries, * Number of affected rows* will be displayed as a Reponse.
99+ 1 . For DML queries, * Number of affected rows* will be displayed as a Reponse.
95100For example:
96101` INSERT INTO classicmodels.productlines(productLine, requestedProductRequirement)VALUES({productLine}, {requestedProductRequirement}) `
97- b. Click ** Save Query**
102+
103+ 2 . Click ** Save Query**
104+
98105{{< figure src="/attachments/howto/integration/use-the-external-database-connector/6.png" >}}
99106
100107** For all DML Queries, changes made to database in Mendix Design phase are automatically rolled back**
101108
102109### 5. Use “Query External Database” activity:
103110
104- a. Use ` Query External Database ` activity from toolbox in the microflow.
105- b. Double click on activity and select created External Database Connection document.
106- c. All the queries created for the selected document will appear in the dropdown, select the required one.
107- d. Assign values to the parameters using ` Expression editor ` .
108- e. Output details for the selected query will be auto-populated.
111+ 1 . Use ` Query External Database ` activity from toolbox in the microflow.
112+
113+ 2 . Double click on activity and select created External Database Connection document.
114+
115+ 3 . All the queries created for the selected document will appear in the dropdown, select the required one.
116+
117+ 4 . Assign values to the parameters using ` Expression editor ` .
118+
119+ 5 . Output details for the selected query will be auto-populated.
109120
110121{{< figure src="/attachments/howto/integration/use-the-external-database-connector/7.png" >}}
111122
0 commit comments