Skip to Content
0

No user information show in Java Web Dynpro

Jul 03, 2017 at 10:42 AM

62

avatar image
Former Member

We try to create the JAVA Web Dynpro project by Net Weaver developer studio and after we deployed finish,

the system does'nt show any user information in input filed.

Please advise me.


try {

IWDClientUser clientUser = WDClientUser.getCurrentUser();

IUser user = clientUser.getSAPUser();

String displayname = user.getDisplayName();

wdContext.currentContextElement().setDisplayname(displayname);

String uniquename = user.getUniqueName();

wdContext.currentContextElement().setUniquename(uniquename);

String firstname= user.getFirstName();

wdContext.currentContextElement().setFirstname(firstname);

String uid= user.getUniqueID();

wdContext.currentContextElement().setUid(uid);

String jobtitle= user.getJobTitle();

wdContext.currentContextElement().setJobtitle(jobtitle);

String lastname=user.getLastName();

wdContext.currentContextElement().setLastname(lastname);

}

catch (WDUMException e)

{

e.printStackTrace();

}

user3.jpg (114.4 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Szabolcs Renyo
Jul 04, 2017 at 02:33 PM
2

Dear Boonma,

Could you please let me know what do you mean exactly by user information?

Would you like if the input fields includes some default content? Or would you like that some additionally information appear if you move your mouse above the fields?

Thank you and best regards,
Szabolcs

Share
10 |10000 characters needed characters left characters exceeded
Szabolcs Renyo
Jul 07, 2017 at 02:02 PM
1

Dear Boonma,

The input fields are usually used to collect some information from the user not for to present them.

To display information in the screen I would suggest to use "Caption" instead of "input field".

You can provide some information which will appear if you move your mouse above the fields with the property "tooltip".

I hope it was answer for your question.

Best regards,
Szabolcs

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jul 05, 2017 at 01:49 AM
0

Dear Renyo,

Thanks for supporting, yes, I use the input filed to show some default content. I try to get information from current user, but system not show any information on input filed.

Share
10 |10000 characters needed characters left characters exceeded