cancel
Showing results for 
Search instead for 
Did you mean: 

display user id of portal

Former Member
0 Kudos

Hi All,

I creted a WD application to display the user id and the result wii show a number, What does that mean and how can I make it display the user id. The code is

IWDClientUser wdUser = WDClientUser.getCurrentUser();

wdContext.currentContextElement().setHeaderTextwdUser.getClientUserID());

please help

Thanks

Henry

Accepted Solutions (0)

Answers (3)

Answers (3)

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

Check this to get the details of portal during runtime.

i.e. User id

Check this for getting all the user from portal,

Regards,

Vijayakhanna Raman

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

So did this work for ya?

Regards,

Rich Heilman

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I've done the same with a sample application. Here is some code which helped me.

		try {
			IWDClientUser user = WDClientUser.getCurrentUser();
			if (user.isAnonymousUser()) {
				//	  User is anonymous .. do something...
			} else {

				String s = null;
				s = <b>WDClientUser.getCurrentUser().getSAPUser().getUniqueName();</b>
				wdContext.currentContextElement().setUsername(s);

				//	  user is authenticated..do something
			}
		} catch (WDUMException e) {
			//	  do something...
		}

Regards,

Rich Heilman