if i run this project directly it doesnt work for me hear is where im at.
I could get it to work straight away so i had to change the app.js to bellow.
(function(){
// load joli library and models definition file
joli = require('/lib/vendor/joli/joli').connect('syncme');
joliApi = require('/lib/vendor/joli/joliapi').joliApi(joli);
Ti.include('/lib/model/models.js');
Ti.API.info('Runing...');
joli.models.initialize();
// initialize the app
models.news.truncate();
// load the people from the service
models.news.forceReload();
// load our app and execute it
Ti.include('/lib/view/app.js');
app.execute();
})();
So this will run but i am now getting the following error my json is being parsed correctly.
[ERROR] Script Error = 'undefined' is not an object (evaluating 'constraints.where') (unknown file).
joli.apimodel.prototype = {
all: function(constraints) {
Ti.API.info('Runing Api...');
Ti.API.info(constraints);
//above returns null
Any suggestions on why this is happening do you having a full project i can work from.