Display user details after login using data master record
How can I display the user details after they login? In the data master record I got name, email, password, and photo. The login only requires email and password, after validation and successful login how can I display the detail of the login user?
Anybody?
Anybody?
Hi,
Here you will find a tutorial of how to validate the login: http://www.justinmind.com/prototyper/...
Now, I'm goint to explain how to do the second part.
1. In the same button that executes the login action, add a "set value to" event. Create a variable called "userselected" for example and click on calculate. Then, drag the input email into the expression builder and click ok. This is how you will see the expression builder once you have done it.
2. Now, in the second screen, drag two labels and one image widget onto the canvas. Then, click on the screen and create an "on page load" event. Select "set value to" action and click on the first label. Once you have selected, click on calculate and build the following expression:
3. Copy and paste the event and you only have to change the last part of the email or photo instead of name attribute) and select the other label or the image widget.
Best regards.
Hi,
Here you will find a tutorial of how to validate the login: http://www.justinmind.com/prototyper/...
Now, I'm goint to explain how to do the second part.
1. In the same button that executes the login action, add a "set value to" event. Create a variable called "userselected" for example and click on calculate. Then, drag the input email into the expression builder and click ok. This is how you will see the expression builder once you have done it.
2. Now, in the second screen, drag two labels and one image widget onto the canvas. Then, click on the screen and create an "on page load" event. Select "set value to" action and click on the first label. Once you have selected, click on calculate and build the following expression:
3. Copy and paste the event and you only have to change the last part of the email or photo instead of name attribute) and select the other label or the image widget.
Best regards.
NOTE: Found my mistake :) IT WORKS!... Thanks..
NOTE: Found my mistake :) IT WORKS!... Thanks..
What if I would like to edit that details? I created a 3rd screen and use your instructions instead of a label I use a text box and in the end I added a button with on click event and data master action modify and add another event to go to 2nd screen when clicked, but when I simulate it I cant click the button.
What if I would like to edit that details? I created a 3rd screen and use your instructions instead of a label I use a text box and in the end I added a button with on click event and data master action modify and add another event to go to 2nd screen when clicked, but when I simulate it I cant click the button.
If you want to modify the values of the datamaster, you have to drag on the expression builder the input text. Here you will find a good example of how to do it.
http://justinmind.com/usernote/tests/...
Best regards.
If you want to modify the values of the datamaster, you have to drag on the expression builder the input text. Here you will find a good example of how to do it.
http://justinmind.com/usernote/tests/...
Best regards.
Ops, that was the wrong image. I corrected the at already but still I cant click the button. If I delete the modify action in the event the button can be clicked.
the 3rd screen got an onload event in it.
Can I send you my project so that you can check? sorry for being a spoon feed I'm just new with justinmind.
Ops, that was the wrong image. I corrected the at already but still I cant click the button. If I delete the modify action in the event the button can be clicked.
the 3rd screen got an onload event in it.
Can I send you my project so that you can check? sorry for being a spoon feed I'm just new with justinmind.
Sent it. with the subject MY JUSTINMIND. are you the one that will check it?
Sent it. with the subject MY JUSTINMIND. are you the one that will check it?
Thanks for the help albert. I get it :). Hope you can help me again next time.
Thanks for the help albert. I get it :). Hope you can help me again next time.
Replies have been locked on this page!