Katja Knecht
Posts: 0
Joined: Fri Jul 05, 2013 9:42 pm

Data service not recognised anymore

I built the page based on the "Building a simple ToDo app with Appery.io Backend Services, part 2: working in offline mode" and the code that was provided with it. The only thing I changed is that I run a query service called a_list_service instead of a list service. It was all working fine until two days ago when I added two additional columns to my database. When I run the app now I get a reference error in function listServiceExecute() when I try to call it saying that the a_list_service is not defined.

I first tried to update the response format of the service to match the changes. As that did not work, I deleted the database service and recreated and remapped it. But that did not helped either.

Do you have any idea of what could be wrong or what I can do to make it work again?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Data service not recognised anymore

Hello! Looks like you have some JS errors in your code - particularly a_list_service variable is not defined. Please post your public app link.

Katja Knecht
Posts: 0
Joined: Fri Jul 05, 2013 9:42 pm

Data service not recognised anymore

Hi Marina,

I tried to reproduce the error again right now but it seems that the page is not even loaded properly so it does not even get to the onDeviceReady() call on device ready (which then calls the listServiceExecute()).

However, the public link is:
http://appery.io/app/mobile-frame?src...

I set the start page to the page on which the problem occurs. Btw. the query is based on two local storage variables, which I set on the previous page.

Please let me know if you need to know anything else.

Katja Knecht
Posts: 0
Joined: Fri Jul 05, 2013 9:42 pm

Data service not recognised anymore

Hi Marina,

I rebuilt the entire page and now everything seems to work again. I still do not know what the problem was. Maybe, as you said, something in my JavaScript code, although I copy and pasted most of the scripts from the old to the new page, or some relicts of previous trials - I worked and changed quite a lot on the old page over time.

Nevertheless, thank you very much for your help!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Data service not recognised anymore

Thank you for update! Glad it's working now:)

Return to “Issues”