jsonstore

IBM Worklight JSONStore | Remove Document from Collection and erase it from memory

南楼画角 提交于 2019-11-28 14:37:56
I have been trying to erase all document from collection and memory before adding new one. I tried it by following methods 1. WL.JSONStore.get("users").findAll().then(function (arrayResults){ var options={push:true}; if(arrayResults.length>0){ for(var i=1;i<=arrayResults.length;i++){ WL.JSONStore.get("users").remove(i,options); } } }); 2. WL.JSONStore.get("users").findAll().then(function (arrayResults){ var options={}; if(arrayResults.length>0){ for(var i=1;i<=arrayResults.length;i++){ WL.JSONStore.get("users").erase(i,options); } } }); But didn't get success. Its showing all documents by

What are the recommended ways to debug Worklight applications?

馋奶兔 提交于 2019-11-27 15:24:18
I'm finding it incredibly slow to fix issues that are specific to the iOS portion of my app. I'd like the know the recommended way to debug Worklight apps when the browser debugger isn't available. In particular, I'm working on issues with WL.JSONStore which only works on iOS and Android. I can't use the browser debugger to see what's going on. When I do WL.Logger.debug() statements, nothing is showing up in the Xcode console, and the iPad simulator console (Cordova) only displays a few lines. There have also been periods this week that no output is printed anywhere. I have downloaded and

IBM Worklight JSONStore | Remove Document from Collection and erase it from memory

心已入冬 提交于 2019-11-27 08:44:05
问题 I have been trying to erase all document from collection and memory before adding new one. I tried it by following methods 1. WL.JSONStore.get("users").findAll().then(function (arrayResults){ var options={push:true}; if(arrayResults.length>0){ for(var i=1;i<=arrayResults.length;i++){ WL.JSONStore.get("users").remove(i,options); } } }); 2. WL.JSONStore.get("users").findAll().then(function (arrayResults){ var options={}; if(arrayResults.length>0){ for(var i=1;i<=arrayResults.length;i++){ WL

What are the recommended ways to debug Worklight applications?

我怕爱的太早我们不能终老 提交于 2019-11-26 18:31:16
问题 I'm finding it incredibly slow to fix issues that are specific to the iOS portion of my app. I'd like the know the recommended way to debug Worklight apps when the browser debugger isn't available. In particular, I'm working on issues with WL.JSONStore which only works on iOS and Android. I can't use the browser debugger to see what's going on. When I do WL.Logger.debug() statements, nothing is showing up in the Xcode console, and the iPad simulator console (Cordova) only displays a few lines