Writing the data into the file
-
Double-click tRowGenerator to open its
RowGenerator Editor.
-
Click the [+] button to add two columns:
id of Integer type and name of String type. Then in the Functions column, select the predefined function
Numeric.sequence(String,int,int) for
id and TalendDataGenerator.getFirstName() for name. -
In the Number of Rows for RowGenerator
field, enter 5 to generate five
rows. -
Click OK to validate the changes and
accept the propagation prompted by the pop-up dialog box. -
Double-click tFileOutputDelimited to open
its Basic settings view.
-
In the File Name field, press Ctrl+Space and from the global variable list
displayed select ((String)globalMap.get(“tCreateTemporaryFile_1_FILEPATH”)).
Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Login
0 Comments