A data transform rule in an offline-enabled application that is run by using a Run script action or a custom JavaScript function is not packaged, by default. To package these types of data transform rules for offline use, you must explicitly add data transform definitions to the pyDataTransformWhitelistForOffline rule as either the pxInsName string of the data transform, or, if you need to add multiple data transforms, a list of pxInsName strings, each separated by a new line.
The pxInsName string consists of the name of the data transform class appended to the data transform name, separated by an exclamation mark ('!'). For example, if the class name for a data transform is MY-SAMPLE-WORK-DATATRANSFORMS
and the data transform is called SampleDT
, the pxInsName string for this data transform is:
MY-SAMPLE-WORK-DATATRANSFORMS!SampleDT
To add data transform rules to a whitelist for offline use:
@baseclass
class.