Thomas Hultgren
Posts: 0
Joined: Mon Nov 24, 2014 6:38 pm

Tutorials problem: Building a ToDo app pt. 2: offline mode

First problem:
I'm using the Tutorial Building a ToDo app pt. 2: offline mode and I'm getting an error regarding: todoDB_todo_delete_service when I try to test it?

Error: Can't perform substitution for {_id}

Second problem:
The Tutorial it never tells you to do the variable _taskId in Model and Storage it only tells you to create the _taskName. So I created it any way. Is that correct?

Thanks in advance.
/thomas

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Tutorials problem: Building a ToDo app pt. 2: offline mode

Hello,

First: Could you please provide us Service settings, Request, Response tabs screenshots.

Second: Yes. You create both.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Tutorials problem: Building a ToDo app pt. 2: offline mode

Hi Thomas,

It seems you don't pass "_id" request parameter to this service.

Please show us how do you invoke this service. And service datasource "before send" mapping.

Regards.

Thomas Hultgren
Posts: 0
Joined: Mon Nov 24, 2014 6:38 pm

Tutorials problem: Building a ToDo app pt. 2: offline mode

Hi,

Ok, I hope this is what you need.

Regards
Thomas

Image

Image

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Tutorials problem: Building a ToDo app pt. 2: offline mode

Hi Thomas,

Lets check what is stored in your "_taskId" storage.

  1. Open this "before send" mapping.

  2. Click on "_id" request parameter "JS" button.
    Details: http://prntscr.com/5ozfxw/direct

  3. Populate with following JS code:

    pre

    console.log("_taskId = '" + value + "'");

    return value;

    /pre

    Then try again and take a look into console to see what _taskId you actually have in your storage.

    Regards.

Return to “Issues”