You are here: Offline capability > Data transform support in offline mode > Whitelisting data transform rules for offline use

Whitelisting data transform rules 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 type 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 whitelist 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 whitelist data transform rules for offline use:

  1. Click Designer Studio > Mobile > Offline.
  2. In the Whitelist section, click Modify whitelist relating to data transforms to open the pyDataTransformWhitelistForOffline rule.
  3. Verify that the pyDataTransformWhitelistForOffline rule that you are editing belongs to the @baseclass class.
  4. In the HTML source field, 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.
  5. Click Save.