Log in
Log in with USB
Inloggen met vingerafdruk wordt binnenkort mogelijk.
Last change: October 7, 2019
Current version: 1.5.2
The transformData module transforms the given data before passing it on to the next module.
webanizr.send('transformData', data, parameters, callback);
The data that has to be transformmed before passing it on.
transformData accepts the following parameters:
By default the transformData only manipulates keys and values on the highest level. If you want to manipulate the keys and values of a specific sublist you can specify the key name of this sublist in this parameter. If you want to apply the transformation on all sublists (one level deep) you can set this parameter to '*'.
A filter function to select certain elements to perform the transformation on. You can use a formula where you can use the key and/or value for comparisson. If you only want key "mykey" you can use the following value for this parameter: '{key__element}' == 'mykey'. If you only want elements with a value greather than 5 you can use '{value__element} > 5.
Prepends a string to all keys.
Appends a string to all keys.
Replaces text in all keys. Supply an array with two elements: the first element is the text to replace, the second one the text to replace it with.
Prepends a string to all values.
Appends a sting to all vallues.
Translates the vaues. The collect of the translate module has to be called before.
Turns a Object into an array by removing all keys. This parameter applies directly to the top level and does nog follw the startpoint__structure parameter.
If set to true, the values of the given data will also be used as keys. If double values are merged to one single records.
The callback function that receives the transformed data.
https://cdn.cpmodules.webanizr.com/demo/transform-data/index.html