Page cover

jsRule Parameters

Rule parameter context

The parameters available to these rules have a context associated with them. 'Context' here means that, when the data comes from a source, only the data in that source is available to the rule. This is applicable to Import Data Transformation rules

Parameter
Description
Documentation

s

The current string value from the source

Can be modified by previous rule

rowData

The entire row's data (all the cell values, modifications, differences, etc.)

Cannot be modified, read-only

p

The pass / block value

Cannot be modified, read-only

pm

The property mapping object

Contains additional options such as "Is it read-only"

Typical rules only manipulate or use the string value s which is passed to it. The table above lists the data to which special rules have access to. It allows for much greater scripting capability.

Last updated