on 04-12-2005 8:44 AM
Hi all,
I am new to webdynpro.
I have one doubt.
Can i get the Portal User (who has logged in) information in webdynpro?
For ex: if i want his login id or his name....how can i get it?
Is it possible????
If yes, how?
Kindly help me.
bye,
KK.
Hai there,
This is not the forum where you should post queries regarding webdynpro. Check out in Web Application Server > WebDynpro forum.
Anyways, You need to add something called <b>com.sap.security.api.jar</b> file to the library of your project(It will be in <b>SAPJDTeclipseplugins</b> folder).Check it out.
Then, you can get the IUser object by::
IUser user = WDClientUser.getCurrentUser().getSAPUser();
Now, you can get firstName, lastname,uid, uniqueID etcc....from this user object.
You can get more information from the following threads:
Search in the webdynpro forum, you will get more threads.
Hope it helped you.
<b>Regards,
Sai Krishna.</b>
<b>PS:</b> Please award points if it helps.
Message was edited by: Sai Krishna T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Include the jar com.sap.security.api.jar
Use the following code
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
Regards
Prakash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.