Capture id of user in Portal

 3 Replies
 0 Subscribed to this topic
 14 Subscribed to this forum
Sort:
Author
Messages
SusanA
New Member Send Private Message
Posts: 2
New Member

I need to capture the id the user logged into Portal .  I've tried using the info from previous posts but with no luck.  I'd like to do this using javascript.

Susan

David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
Are you using Design Studio? If so you can use:
var userid=portalWnd.oUserProfile.getAttribute("lawsonuserlogin")
David Williams
SusanA
New Member Send Private Message
Posts: 2
New Member

Unforturnately we don't have Design Studio.  We have a few custom apps that we developed using Java, jsp,  and javascript.  In our 8 environment (not Portal) we just grabbed the userid from a hidden frame on the top window.  Can we do this with Portal?

Thanks!

Gary Davies
New Member Send Private Message
Posts: 0
New Member

Were you using the authenticate functon to populate authUser as self service apps do,  this method still is used but the source moved from javascript/authenicate.js to webappjs/user.js

Gary Davies

www.automated-workflow.com