Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

put service

I mean username and password for star_login_service. I'll use them to get X-Appery-Session-Token for testing currentorderService.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

put service

OK Igor,
from login screen "z" for both.

thx

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

put service

On "Vegetarian_Pizza"-Data tab-currentorderervice-Edit Mapping-Request tab-currentorder-Edit JS. Replase code:
pre
return JSON.parse(localStorage.getItem("liveorderArray"));
/pre

to the next one
pre
return JSON.parse(value);
/pre

Image

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

put service

Thank you Igor,
that works, but what I don't understand is, I have an array in another app which puts an array into a users db, it works fine, but it uses the js I have just replaced, yet this service would not accept it, even though they are setup in the same way.

anyway thank you for your time

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

put service

Spoke too soon,
no services are working now, login fails navs to register, when app is opened with menu as start page, click pizzas and click vegetarian pizza, sevrice to call menu fails, strangely no errors in console, s/s below.
however it very late here and enough is enough,
I did not expect this service to cause so must trouble and time, as I have a simular service in another app that works.(with the js we deleted)

this js does not seem to be the solution, although in fairness to you Igor I know you have spent some time with me on this and found issues that weren't apparent to others,
I still need a solution, it cant be that difficult to put an array in the db, but if you guys can't, theres no hope for me

regards

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

put service

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

put service

[quote:]click pizzas and click vegetarian pizza[/quote]
I tested it works for me. This service will not work without valid X-Appery-Session-Token. To get session token you should call login service. If you don't want to use login page you need to call login service on menu page and set username and password on "star_login_service" properties.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

put service

I know Igor, I am login in, its failing, but its intermittent, are there any db issues like at the weekend

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

put service

All works without issues. Can you attach screen shot?

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

put service

thats the strange thing,
there are no errors, its just like the screen above, nothing appears, so I close that tab in the browser, hit test again and login works as does all services, dont understand, maybe I am looking too long, i am going to rest and see what tomorrow brings

thanks for all your help, with any luck we wont need to speak on this one again.
cheers

Return to “Issues”