on 07-24-2008 7:20 AM
Hi..
I have a requirement in my Web Dynpro Application that i want to put automatically login-user credentials in Input Field of my view of application.
How to go for it..?
any suggestions..?
Thanks...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Get the Logged in user name by using the code below:
IUser user = WDClientUser.getCurrentUser().getSAPUser();
String logUser = user.getDisplayName();
Now create a context attribute(say name) and bind it to the input field.
You can set the logged in user name to this input field using the below code
wdcontext.currentcontextelement.setName(logUser);
Hope this helps.....
Regards,
Padmalatha.K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.