You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/howto/integration/use-the-external-database-connector.md
+29-30Lines changed: 29 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,7 @@ This how-to teaches you how to do the following:
24
24
* Connect your Mendix App with an external Database.
25
25
* Create and execute different SQL Queries.
26
26
27
-
Let's try to build below use case using External Database Connector in Mendix App:
28
-
29
-
Connect to an external database(MySQL) and retrieve list of Requested Products from database, also as a user you can Request for a Product using Mendix App.
27
+
Let's use External Database Connector in Mendix App, to connect, retreive and insert data.
30
28
31
29
## 2 Prerequisites
32
30
@@ -41,9 +39,9 @@ if additional connection properties are required to connect, you can alternative
41
39
42
40
## Steps to follow:
43
41
44
-
### 1.Establish connection between External database and Mendix app
42
+
### 1.Establish connection between external database and Mendix app
45
43
46
-
1. Create new document of type **“External Database document.”**(File -> New Document -> External Database Connection or Rightclick on Module -> Add other -> External Database Connection)
44
+
1. Create new document of type **'External Database document'**(File -> New Document -> External Database Connection or Rightclick on Module -> Add other -> External Database Connection)
47
45
48
46
2. Select Database and add Connection details to connect to Database
49
47
@@ -53,24 +51,26 @@ if additional connection properties are required to connect, you can alternative
Hurray Connection between your External Database and Mendix app is established successfully.
54
+
Hurray Connection between your external database and Mendix app is established successfully.
55
+
56
+
Click on **Save** to save connection details, these details are stored in 3 constants.
57
57
58
-
Click on “Save” to save connection details in 3 constants
58
+
-\<Document Name\>_DBSource
59
+
-\<Document Name\>_DBUsername
60
+
-\<Document Name\>_DBPassword
59
61
60
-
- DBSource
61
-
- DBUsername
62
-
- DBPassword
62
+
For example: *Database*_DBsource.
63
63
64
-
### 2 Explore Tables and Views of a connected Database:
64
+
### 2. Explore Tables and Views of a connected Database:
65
65
66
-
Once connection is successful and saved, you can explore and search different**Tables & Views** of external database in External Database Connection document.
66
+
Once connection is successful and saved, you can explore and search **Tables & Views** of external database in External Database Connection document.
With these steps you are ready to use data in your Mendix App.
112
+
With these steps you are ready to use data from external database in your Mendix App.
114
113
115
114
{{% alert color="warning" %}}
116
115
It is your responsibility to apply the proper security, as this action can allow for SQL injection into your Mendix application. Among others things, do not use user-supplied or environment-supplied variables in your SQL statement; if possible, you should prefer them to be static.
0 commit comments