Hi there,
My function nFac() don't works because I have changed the permissions of the table servicios to Private, returning this error:
{"message":"READ access on type 'servicios' denied for anonymous user.","code":603}
Thanks.
My code:
---------------------------------------------------------
function nFac() {
var el = new Everlive('7y...lk');
var data = el.data('servicios');
var query = new Everlive.AggregateQuery();
query.sum('registro', 'fra');
return data.aggregate(query)
.then(function(data) {
var s = JSON.stringify(data);
var j = JSON.parse(s);
return j.result[0].fra;
},
function(error) {
alert(JSON.stringify(error));
});
}