laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

login

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

login

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.

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

login

Hi Katya:

You could explain it in more detail.

I don't understand.

Thanks

Laura.

Kal
Posts: 0
Joined: Thu May 22, 2014 11:03 pm

login

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.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

login

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.

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

login

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

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

login

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

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

login

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.

Return to “Issues”