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/appstore/use-content/platform-supported-content/modules/data-importer-extension.md
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ To import data, right-click on the module and click **Add other** > **Data Impor
60
60
61
61
Once you have [created the Data Importer document](#create-document), click **Select a local file** to import an Excel file (*.xls* or *.xslx*) or CSV file (*.csv*).
Click **Preview Source Data & Entity** to view the data from the file. The first 10 rows from the source file are shown in the data preview section. The Sheet Name is used to create a NPE, but this can be edited. The column names correspond to the attribute names within the entity.
76
76
77
77
All the columns are selected (checked) by default. You can uncheck the columns you do not want to import. At the bottom of the table, you can see the target data type of the attribute, which is based on the cell type defined in the file's first data row. If any data types are incorrect, check the cell type of the first data row in Excel and adjust the cell type definition accordingly.
78
78
79
79
{{% alert color="warning" %}} Column names that do not adhere to Mendix naming conventions will be autocorrected. {{% /alert %}}
The empty rows before the start of actual header and data row(s) are trimmed in the preview. This means the preview will be skewed if the provided header row value is >1. To avoid this, you can remove the empty rows yourself before uploading the file and assign the header row as 1, or make sure the rows before the header row contain some data and keep the header row value as its actual value.
86
86
87
87
For example, the below file will result in a confusing preview if **Header Row No.** is 2 and **Read Data From** is 3. In this scenario, the first row (which is empty) should be removed from the input Excel file. Then, **Header Row No.** should be set as 1 and **Read Data From** as 2. Otherwise, a static test should be given in any column of first row to continue with **Header Row No.** as 2.
@@ -107,11 +107,11 @@ All the columns are selected (checked) by default. You can uncheck the columns y
107
107
108
108
For example, for the following source data (CSV), the separator is specified as Comma. The Quote and Escape Characters are set to Double Quote, and Header is included in the input file.
2. Double-click the activity and in the **File** field, select an input file (Excel or CSV).
177
177
3. In the **Data importer document** field, click **Select** and choose the Data Importer document you want to use. Choose an appropriate Data Importer document based on the input file.
4. After selecting the Data Importer document, the **Return type** and **Variable name** will auto-populate. You can also change the name of the output variable.
182
182
5. Click **OK**.
183
183
184
184
The custom activity is configured and you can import data from input files.
Once you have [created the Data Importer document](#create-document-with-imm), click **Select a local file** to upload a sample Excel file (*.xls* or *.xslx*) or CSV file (*.csv*).
You can choose which sheet to import data from, and specify the header row and starting data row.
219
219
@@ -223,7 +223,7 @@ You can choose which sheet to import data from, and specify the header row and s
223
223
224
224
Click **Preview Structure Elements** to view the data structure from the file. The data from the first row of the source file is shown in the **Schema elements** section. Click **Create Structure** and you will be notified that a new structure is generated successfully.
### Support for Mapping Parameter in Import Mapping {#mapping-param-import-mapping}
272
272
@@ -275,7 +275,7 @@ The [Mapping Parameter](/refguide/import-mappings/#mapping-parameter) is support
275
275
Follow the instructions below to define an **Import Mapping** with mapping parameters.
276
276
277
277
1. In your **Import Mapping**, drag an entity from the **Connector** tab and drop into the target object placeholder. Click **Cancel** on the **Map entity...** dialog as you will fill in the details later.
278
-
2.Similarly, drag another entity from the **Connector**tab which you intend to pass as a parameter and drop into the parameter placeholder.
278
+
2.From the **Connector**pane, drag another entity which you intend to pass as a parameter and drop into the parameter placeholder.
279
279
3.**Double Click** the source or target object to open the **Map entity...** dialog.
280
280
4. Select **Call a microflow** to **Obtain Mendix Object** for your Import Mapping.
281
281
5. If necessary, create a **Microflow** which will create an object of target entity and set an association with the passed parameter.
@@ -284,7 +284,7 @@ Follow the instructions below to define an **Import Mapping** with mapping param
284
284
285
285
The Import Mapping should look like the example below:
@@ -311,13 +311,13 @@ To edit the Data Importer document, do the following:
311
311
1. Double-click the Data Importer document that you want to **Edit**. The document opens in read-only mode.
312
312
2. Click **Update File** in the top-right corner. You will receive notification that when a new file is uploaded and changes are saved, existing mapping/structure elements will be erased and will be replaced by new mapping/structure.
Similar steps can be followed to update the Data Importer document, which was created with **Implicit Mapping** in the [Creating a Data Importer Document](#create-document-with-imm) section.
0 commit comments