Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Question

On the creation screen of a Data Source, there is a drop-down box where you can select a "PriceAnalyzer" logic type. What is it?

...

hiddentrue

...

Answer

This is a transformation logic - similar to the one in Data Load Flush operation. It is a logic used to transform data already in the Data Source.

You can make elements in the logic with Context "Init" and in this case, loop through results of api.getDatamartRowSet("target"). Using this strategy, you can update rows with target.addRow(rowMap).

Alternatively you can make elements with the context "Row", and access the individual row info using api.getUserEntry("ColumnName"), and output the result back to the column by "return"ing my transformed result from an element with the name of the column I wish to transform.

It is triggered when data is loaded in a Data Source, either through a file upload, or a flush from a Data Feed.