Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Access Transformed Data

$
0
0

Hi,

I have a transform function that adds fields to a model that I do not want saving to the database.

function calculateFunction(model) {
    var transform = model.toJSON();
    var input = model.get('input');
 
    transform.input = input;
    transform.output = some_function(input);
 
    return transform;
}
How can I access the output data, as it isn't actually saved in the model.

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>