Questions about offline tutorial

Hi,

I'm trying to follow your tutorial here (http://devcenter.appery.io/tutorials/...).

1)
Currently, I'm troubled understanding this line:
Apperyio.storage._echo.set(JSON.stringify(this.data));


This line as per the tutorial, is supposed to be placed on list_service success event.
However, whenever I use it with the event, I get the error "Cannot read property "set" of undefined"".

I added the following before the line and this is their results:
console.log('stringify :'+JSON.stringify(this.data));     //undefined
console.log('storage :'+Apperyio.storage._echo); //undefined
Apperyio.storage._echo.set(JSON.stringify(this.data));


What is this line is supposed to do here? what is "storage"? and what is "this.data" in this case"?

2) Does _echo store all tasks (those created online and offline) or only those created offline? If stores online and offline tasks, where in the tutorial script, the online tasks are added to _echo?

3) If _echo stores all tasks (online and offline), where the newly offline created ones are supposed to be stored? I assume that there is _echo for the entire list of tasks that created online and offline, and there is another LSV store newly offilne created tasks. Am I correct?
1 person has
this question
+1
This topic is no longer open for comments or replies.