Page 1 of 1

why appery cant recognize its own rest service?

Posted: Mon Jan 19, 2015 6:11 pm
by AC

i got the problem when i call the login service

please help

Image

Image


why appery cant recognize its own rest service?

Posted: Tue Jan 20, 2015 2:30 am
by AC

I also got this error msg
Image


why appery cant recognize its own rest service?

Posted: Tue Jan 20, 2015 3:57 am
by Yurii Orishchuk

Hi AC,

It means you have not merchandiseDB_login_service datasource on that page.

So you need - to add this datasource (with other name) to the goal page and then you can use it.

Also, don't confuse service and datasource.

Regards.


why appery cant recognize its own rest service?

Posted: Tue Jan 20, 2015 4:36 am
by AC

hi yurii, I adpted ur suggestion and made it work. But why it only works once? First time I input username and password, they are stored in lsv. But second when the autologin service executed, it automatically login, but earse the lsv value as well. That mean the third time I still need to manually input...is this a service bug? I though it should keeps the variables until I completely uninstall the app or logout? My code is below, please advice.


why appery cant recognize its own rest service?

Posted: Tue Jan 20, 2015 4:37 am
by AC

Yurii or others can see any problem here?
Image

Image


why appery cant recognize its own rest service?

Posted: Tue Jan 20, 2015 11:58 am
by Alena Prykhodko

Hello,

1) May be because you do not check whether the new value is empty value
2) May be because you are not getting the right component
http://gyazo.com/4997c02d0d258e05a27b... - parameter works for us.

You have problem with custom JavaScript. Have you tried to debug your code http://devcenter.appery.io/documentat...?