Is there an API call or property I can use in the SharePlusOnLoad() javascript function to get the login and/or name of the current user?
Hello Joe,
Thank you for your support request!
Please refer to the available documentation: http://download.infragistics.com/shareplus/docs/current/iOS/DeveloperGuide.pdf
As far as I can see this is the one you need:
User.getUser - This method is used to get the SharePoint user information from a web’s URL. The site containing that web needs to be configured in SharePlus and already been accessed within the application at least once.
More info on page #90 of the document above.
Let me know if you need further assistance.
Thanks, yes, I found that, and it does work. I was asking to see if there was something already "known" by the framework/app as the "current user". In that method, I have to supply a URL, which I would need to hard code in my function call, and I was hoping there was something that would get it from where it loaded the launch pad from so my call could be independent of the site being used.
OK! That's what we have available. Do you mean the user URL? These are standard and can be built from the main site's URL. E.g.:contoso-my.sharepoint.com/.../
I don't know if this helps but let me know if I can be of further assistance.
Take care :)
Nice question. Avatar Game wants to share its game on shareplusonload
The particular platform or framework your application uses will determine the API call or ovo game property to use to retrieve the login or name of the current user in the SharePlusOnLoad JavaScript method.