August 15, 2023

Configuration in the tMap editor – Docs for ESB 6.x

Configuration in the tMap editor

  1. Double-click tMap to open its
    editor.

    Use_Case_tPaloDimension5.png

  2. On the Schema editor view on the lower
    part of the tMap editor, under the
    out1 table, click the plus button to
    add three rows.
  3. In the Column column of the out1 table, type in the new names for the three
    newly added rows. They are Year,
    Month, and Date. These rows
    are then added automatically into the out1
    table on the upper part of the tMap
    editor.
  4. In the out1 table on the upper part of
    the tMap editor, click the Expression column in the
    Year row to locate the cursor.
  5. Press Ctrl+space to open the drop-down
    variable list.
  6. Double-click TalendDate.formatDate to
    select it from the list. The expression to get the date displays in the
    Year row under the Expression column. The expression is
    TalendDate.formatDate("yyyy-MM-dd HH:mm:ss",myDate).
  7. Replace the default expression with
    TalendDate.formatDate("yyyy",row1.random_date) .
  8. Do the same for the Month row and the
    Date row to add this default expression and to
    replace it with TalendDate.formatDate("MM",row1.random_date)
    for the Month row and with
    TalendDate.formatDate("dd-MM-yyyy", row1.random_date) for
    the Date row.
  9. Click OK to validate this modification
    and accept the propagation by clicking OK
    in the dialog box that pops up.

Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x