Hi Wenyu Huang,
Let’s break down the steps for setting up the import mapping in Mendix:
-
Import Mapping:
- An import mapping defines how data from an external source (such as JSON) is mapped to Mendix entities and attributes.
- It allows you to transform and load data into your Mendix application.
-
Naming Convention:
- The naming convention for the import mapping should be
ImM_Department_Employee
.
- This convention helps maintain consistency and clarity in your project structure.
-
Selecting the JSON Structure:
- You’ve already defined the structure of your JSON data.
- Now, create an import mapping by right-clicking the
Import
folder and selecting Import Mapping
.
- Choose the JSON structure you’ve previously configured.
-
Mapping Data:
- In the import mapping, you’ll map the JSON data to Mendix entities and attributes.
- For each field in your JSON, specify the corresponding Mendix attribute.
- Pay attention to the two items that were not selected in your screenshot—they might be related to specific fields or transformations.
Remember, the import mapping process ensures that your data is correctly loaded into Mendix, allowing you to work with it effectively.
Happy Mendix Development.