Table of Contents

Search

  1. Preface
  2. Transformations
  3. Source transformation
  4. Target transformation
  5. Aggregator transformation
  6. Cleanse transformation
  7. Data Masking transformation
  8. Data Services transformation
  9. Deduplicate transformation
  10. Expression transformation
  11. Filter transformation
  12. Hierarchy Builder transformation
  13. Hierarchy Parser transformation
  14. Hierarchy Processor transformation
  15. Input transformation
  16. Java transformation
  17. Java transformation API reference
  18. Joiner transformation
  19. Labeler transformation
  20. Lookup transformation
  21. Machine Learning transformation
  22. Mapplet transformation
  23. Normalizer transformation
  24. Output transformation
  25. Parse transformation
  26. Python transformation
  27. Rank transformation
  28. Router transformation
  29. Rule Specification transformation
  30. Sequence Generator transformation
  31. Sorter transformation
  32. SQL transformation
  33. Structure Parser transformation
  34. Transaction Control transformation
  35. Union transformation
  36. Velocity transformation
  37. Verifier transformation
  38. Web Services transformation

Transformations

Transformations

Step 5. Create an array of structs and join data sources

Step 5. Create an array of structs and join data sources

Add and configure the same-day items array of structs. Using a filter, a join, and a field expression, you output only the items that were ordered and shipped on the same date.
Perform the following steps:
  1. Add a new output field with the following properties:
    Property
    Value
    Child Of
    PurchaseOrder
    Name
    SameDayItems
    Type
    array
    Array Element Type
    struct
    Element Struct Name
    sameday_str
  2. Add all the incoming fields from PODetail to the SameDayItems array in the output group.
  3. Delete the following field that you do not need in the output group: PurchaseOrder.SameDayItems.OrderNumber.
  4. Add POHeader as a data source for PurchaseOrder.SameDayItems array.
  5. Add a join condition for the PurchaseOrder.SameDayItems array with the following properties:
    Property
    Value
    Left Group
    POHeader
    Join Type
    Inner
    Right Group
    PODetail
    Join Condition
    :fld.{POHeader.OrderDate}=:fld.{PODetail.ShipDate} AND :fld.{POHeader.OrderNumber}=:fld.{PODetail.OrderNumber}
    The following image shows the data sources and join condition for SameDayItems:
    The Data Configuration dialog shows the selected data sources: POHeader and PODetail. The join condition shows Left Group: POHeader, Join Type: Inner, Right Group: PODetail.
  6. Add a filter condition for the PurchaseOrder.SameDayItems array:
    :fld.{PODetail.OrderNumber}=:fld.{PurchaseOrder.OrderNumber}
    .

0 COMMENTS

We’d like to hear from you!