cancel
Showing results for 
Search instead for 
Did you mean: 

How to put automatically login-user credentials in Input Field ?

Former Member
0 Kudos

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...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Please refer to this thread

[;

This thread explains about how to get the Logged in User Name.

Hope this helps

Regards,

Palani

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

hi..

Thanks...

i did it successfully....