Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

How put data from http request to database and list

$
0
0

HI, I now I need to get data from the cb, I need to get the casefolderId of all the rows Approva/rifiuta.
and put in an Array or arrayList... how can i do? the log say to me [object object]

var queryCF = "SELECT caseFolderId FROM Tabella_OdL WHERE stepName='Approva/Rifiuta'";
$scope.allCF = [];
var arrayAllCF = [];
$cordovaSQLite.execute(db, queryCF, []).then(function(res) {
if(res.rows.length > 0) {

            for(var i = 0; i < res.rows.length; i++) {
               $scope.allCF.push(res.rows.item(i));

console.log("allCF " + $scope.allCF);
// $rootScope.allCFJSON = JSON.stringify($rootScope.allCF);
//console.log("json arrayAllCF" + rootScope.allCFJSON);
//chiamata 2
}
} else {
console.log("No CF found ODL");
}
// $ionicLoading.hide();
}, function (err) {
console.error(err);
});


Viewing all articles
Browse latest Browse all 228595

Trending Articles