I need to pass some data into the request make to server and need to parse the response before passing it to FM (due to server response format is different from the require format for FM). How can i do it?
For example, i need to pass Project: {project number} into the request, and the response is in format:
{
status: 1,
message: ‘’,
data: {folders json data here}
}
I am thinking of using proxy like following:
var url = fileManager.source;
var data = {
};
//save data from config into the request
angular.forEach($scope.config.apiConfig.data, function(value, key) {
data[key] = value;
});
$scope.ajax(url, data, 'post', function (text, data) {
var jsonData = data.json();
var items = jsonData.data;
webix.ajax.$callback(view, callback, '', {
data: items
}, 1);
}, function(view, callback){
});
but the FM is empty.
One more thing, look like files and branch request in handlers configuration dont support proxy, is this true?
Thank for your help