Overview
Setting a field's value is available under the field-to-field Mapping.
Get a field's value
Using dataSet.getFieldValue()
value = dataSet.getFieldValue(currentRow, "field name");
Using fieldValue
Use this only for the current field in the context.
value = fieldValue;
Using {field name}
It is a bit slower than the other options because it requires a preprocessing.
value = {field name};
Set a field's value
Use the techniques described here.
or
dataSet.setFieldValue(currentRow, "field name", fieldValue);
Available objects
The following objects can be referenced by name from JavaScript code:
Object name | Class name / JavaDoc | Package |
---|---|---|
dataSet | com.toolsverse.etl.common.DataSet | com.toolsverse.etl.common |
currentRow | com.toolsverse.etl.common.DataSetRecord | com.toolsverse.etl.common |
etlConfig | com.toolsverse.etl.core.config.EtlConfig | com.toolsverse.etl.core.config |
scenario | com.toolsverse.etl.core.engine.Scenario | com.toolsverse.etl.core.engine |
row | current 0-based row number |
Comments
0 comments
Please sign in to leave a comment.