Offline data transform API
The offline data transform API consists of a JavaScript method that helps you to run a data transform in offline-enabled mobile apps by using a Run script action or a custom JavaScript function.
Offline validation is possible with the runDataTransform JavaScript method that is available for thepega.offline
object.Purpose
Runs a data transform with the specified name. You can run the data transform rule in the specified page context.
Signature
runDataTransform( datatransformName, className, pageName, callback )
Parameters
Name | Description | Type | Required |
datatransformName | Specifies the name of the data transform to run. | String | ✅ |
className | Specifies the name of the class to which the data transform belongs. | String | ✅ |
pageName | Specifies the name of page (page context) in which to run the data transform. If you do not specify this parameter or set the parameter to a null value, the data transform runs in the primary page context. | String | ❌ |
callback | Specifies a JavaScript object that contains success and fail methods. The success method is called when the data transform has been run successfully. The fail method is called when an error occurs after a data transform run. | Function | ❌ |
Previous topic Data transforms in offline mode Next topic Data synchronization in offline mode