Answered by:
In lightswitch HTML client how to display logged in user name on the form?

Question
-
Hi All,
I'm new to lightswitch and we had a requirement to display currently logged in user name on the screen.
I need to display currently logged in user name on the top right corner of my home screen in lightswitch html client?
How can i do this?
Thanks & Regards
Vikas Maurya
Monday, July 15, 2013 6:18 PM
Answers
-
Getting the currently logged-on user requires an asynchronous server call in the HTML client. And while the technique to do that is described at lightswitchhelpwebsite.com, I would encourage you as a newcomer to LightSwitch to instead invest in the e-book by the website's author that has that and many other HTML techniques you'll probably need as you build your application. You're likely save yourself a lot of time and frustration if you do.
- Proposed as answer by Amy PengMicrosoft employee, Moderator Tuesday, July 30, 2013 1:22 AM
- Marked as answer by Amy PengMicrosoft employee, Moderator Wednesday, July 31, 2013 9:45 AM
Monday, July 15, 2013 7:46 PM -
Hi Vikas
Go through the below post demonstrated by Michael. You will found how to display logged in user name in lightswitch html screen
End-To-End LightSwitch HTML5 Application
HTH
Regards
Rashmi Ranjan Panigrahi
www.lightswitchspecial.com
If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”.
This will help other users to find their answer quickly.- Proposed as answer by Amy PengMicrosoft employee, Moderator Tuesday, July 30, 2013 1:22 AM
- Marked as answer by Amy PengMicrosoft employee, Moderator Wednesday, July 31, 2013 9:45 AM
Tuesday, July 16, 2013 12:59 PM
All replies
-
Getting the currently logged-on user requires an asynchronous server call in the HTML client. And while the technique to do that is described at lightswitchhelpwebsite.com, I would encourage you as a newcomer to LightSwitch to instead invest in the e-book by the website's author that has that and many other HTML techniques you'll probably need as you build your application. You're likely save yourself a lot of time and frustration if you do.
- Proposed as answer by Amy PengMicrosoft employee, Moderator Tuesday, July 30, 2013 1:22 AM
- Marked as answer by Amy PengMicrosoft employee, Moderator Wednesday, July 31, 2013 9:45 AM
Monday, July 15, 2013 7:46 PM -
Hi Vikas
Go through the below post demonstrated by Michael. You will found how to display logged in user name in lightswitch html screen
End-To-End LightSwitch HTML5 Application
HTH
Regards
Rashmi Ranjan Panigrahi
www.lightswitchspecial.com
If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”.
This will help other users to find their answer quickly.- Proposed as answer by Amy PengMicrosoft employee, Moderator Tuesday, July 30, 2013 1:22 AM
- Marked as answer by Amy PengMicrosoft employee, Moderator Wednesday, July 31, 2013 9:45 AM
Tuesday, July 16, 2013 12:59 PM