Page 1 of 1

login

Posted: Thu Jul 17, 2014 4:54 pm
by laura6372139

Hi:

I have a problem:

I have this page of register:
Image

Image

I have saved in the local storage "userrr" with id registered user.

Then, the second page "listadoempresas" I have this service:

Image

Image

Image

Image

I get an error:

Image

Image

I need that when I login, I navigate to another page and display different collections of the database according to the id of the current user. Do you understand?

Thanks.

Laura


login

Posted: Thu Jul 17, 2014 6:35 pm
by Kateryna Grynko

Hi Laura,

There is an error because you call a service that uses a variable 'userrrr' before you declare it.

In this case it's better to map not a localStorage but an Input component.


login

Posted: Mon Jul 21, 2014 2:57 pm
by laura6372139

Hi Katya:

You could explain it in more detail.

I don't understand.

Thanks

Laura.


login

Posted: Mon Jul 21, 2014 4:47 pm
by Kal

Hey, Laura, I am not an Appery person, but another user... I have encountered this type of problem when you use "Secure collection" feature of the DB. In that case, you need to supply a Session Token that you get from the login screen on the next screen (by storing it in a localStorage variable). Maybe this is the case?

-Kal.


login

Posted: Mon Jul 21, 2014 5:15 pm
by Evgene Karachevtsev

Hello Laura,

This means that when you call restservice6 and use variable userrr in it, this variable still does not contain the name of a user. You should keep the value in a local storage on the event success for restservice5, before the "Navigate to page" action.


login

Posted: Tue Jul 22, 2014 4:11 pm
by laura6372139

Hi:

I tried this but still not working. Image

I get an error.

Image

This is my public link:

http://appery.io/app/mobile-frame?src...

User:patry
Password:gestforest

This is my database:

Image

Thanks

laura


login

Posted: Tue Jul 22, 2014 4:14 pm
by laura6372139

Hi, Kal, is a different case, but thanks for your help.


login

Posted: Wed Jul 23, 2014 2:17 am
by Yurii Orishchuk

Hi Laura,

You have sequence problem.

You invoke service(which is uses your LSV) before your set this LSV.

See details in the following screen shot:
http://prntscr.com/45ed0r/direct

So just move action(set LSV) to the top using "order" buttons.

Regards.