Get the current user in Javascript Lightswitch 2012 HTML Client RRS feed

  • Question

  • Hi everybody,

    I want to get the current user of my Lightswitch HTML application to display or not some links. Can I do that with Javascript?

    Else how can I do?

    Thank you in advance

    Wednesday, June 5, 2013 1:48 PM


All replies

  • Hi Rom's

    This article from Beth will certainly help you.

    • Edited by carloregis Wednesday, June 5, 2013 2:07 PM
    • Marked as answer by Rom's Thursday, June 6, 2013 7:08 AM
    Wednesday, June 5, 2013 1:51 PM
  • Thank you so much carloregis :-)

    I also want to navigate to the Silverlight client of my application from the HTML client.

    After deploying my application, when I click on the link "localhost/applicationTest/DesktopClient" I have got this error : "Load operation failed for query 'GetAuthenticationInfo'. The remote server returned an error: NotFound."

    Wednesday, June 5, 2013 3:05 PM
  • Rom's

    I've never implemented such a feature. However, this thread might give you some ideas on the pattern to use to achieve your goal.

    On a side note, if you found my previous answer helpful, please mark it as answer. It might also be helpful for other people. Thanks !

    Wednesday, June 5, 2013 4:31 PM