Skip to content

Commit 99a234e

Browse files
Merge pull request #183 from gimantha/main
Fix a formatting issue in 7th step
2 parents 268ddf7 + c8a723e commit 99a234e

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

en/docs/integration-guides/usecases/datamapper/read-csv-file-and-transform-to-xml-file.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,14 @@ This function reads CSV data from the path defined in your project’s configura
281281
1. Open the Function Search Panel
282282

283283
In the right-side **Functions** panel, scroll or search for a CSV-related function:
284+
284285
1. Click inside the **Search library functions** field.
285286
2. Type **csv** to filter the standard library.
286287
3. You’ll see a list under **data.csv** and **io** modules containing functions like:
287-
- `parseStream`
288-
- `parseString`
289-
- `fileReadCsv`
290-
- `fileWriteCsv`
288+
- `parseStream`
289+
- `parseString`
290+
- `fileReadCsv`
291+
- `fileWriteCsv`
291292

292293

293294
2. Select `io:fileReadCsv`
@@ -329,15 +330,16 @@ This function reads CSV data from the path defined in your project’s configura
329330
2. Open the Value Picker
330331

331332
Once in **Expression** mode:
332-
- A blue **ƒx** button appears to the left of the input field.
333-
- Click that icon to open the **Value Picker** dropdown.
334-
- The picker shows several categories:
335333

336-
- `Create Value`
337-
- `Inputs`
338-
- `Variables`
339-
- **Configurables**
340-
- `Functions`
334+
1. A blue **ƒx** button appears to the left of the input field.
335+
2. Click that icon to open the **Value Picker** dropdown.
336+
3. The picker shows several categories:
337+
338+
- `Create Value`
339+
- `Inputs`
340+
- `Variables`
341+
- **Configurables**
342+
- `Functions`
341343

342344

343345
3. From the **Configurables** section, select **`inputCSV`** (this is the configurable variable that stores the file path for the input CSV).
@@ -459,10 +461,12 @@ Now that you’ve opened the Data Mapper view, it’s time to visually connect t
459461
1. Understand the Mapping Context
460462

461463
On the **left**, you have:
464+
462465
- `csvRecords` → Type: `CSV[]`
463466
- Each item contains: `order_id`, `sku`, `qty`, and `price` (all as `string`).
464467

465468
On the **right**, you have:
469+
466470
- `xmlRecord` → Type: `Orders`
467471
- Contains: `Row[]`
468472
- Each `Row` has: `index (int)`, `order_id (string)`, `sku (string)`, `qty (int)`, and `price (decimal)`.

0 commit comments

Comments
 (0)