Adding data transform rules to a whitelist for offline use
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:
- In the header of Dev Studio, click .
- In the Whitelist section, on the data transforms line, click Modify whitelist to open the pyDataTransformWhitelistForOffline rule.
-
Verify that the pyDataTransformWhitelistForOffline rule that you are
editing belongs to the
@baseclass
class. - In the HTML source text area, enter either the pxInsName string for a data transform or a list of pxInsName strings for the data transforms, with each entry separated by a new line.
- Click Save.