Skip to Content
avatar image
Former Member

No user information show in Java Web Dynpro

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jul 04, 2017 at 02:33 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 07, 2017 at 02:02 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 05, 2017 at 01:49 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded