on 11-21-2007 11:51 AM
Hi,
Yesterday i posted a query about how to capture the Logon ID which was entered in the portal and the answer I got was helpful.
Now I have another scenario, Lets forget about SSO. Lets assume there are multiple users who are mapped to a single SAP user ID in the portal administration. How can I get the User ID.
For example
MARK
STEPHEN
ANDREW
all mapped to one SAP user ID say SAPUSER.
Now I need to capture Mark or Stephen or Andrew value in my web dynpro application and not SAPUSER.
Can anyone suggest, please. Quick reponse will be much appreciated.
Thanks,
Vivek.T
Hi,
Just add another parameter to your handledefault method of your window, lets say "userid".
Now add in your iview-properties the following for "application parameters":
userid=<User.LogonUid>
That should do the trick.
In your WD the parameter userid contains the logon-id of the portal user.
Good luck!
Jos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vivek,
Strange that this didn't give the Portal Logonid.
Please try <User.UserId> instead of <User.LogonUid>.
If this doesn't work either, send me an email and i will forward you some screenshots.
Ok, a short resumé:
1. In your portal iview add the following to your application parameter property:
userid=<User.UserId>
(or <User.LogonUid> they both should give the same result)
2. In your WebDynpro add the parameter "userid" in the method HANDLEDEFAULT of your Window.
This should give you the portal userid.
Please let me know if it worked!
Jos
Hi Guys,
Ok, so I'm very new to WD4A so forgive me for asking this question in advance. I also needed to get the Portal User ID. I've made the changes as described in this post. I added the line to application paramaters and also entered the userid paramater to the HANDLEDEFAULT method with an associated type of "STRING" belonging to my Window.
Now, my question is, how would I get the userid to populate in a textview element on my default view. I already created the textview and called it User ID. So what do I bind the text to so that it shows the Portal User ID within the actual application?
Regards,
Julian
Hi Jos,
My webDynpro application get the Portal user ID when portal iveiw is previewed. But when we try from the portal link (quick link) the value of portal user ID comes as empty to back-end Webdynpro application.
We are using Window login credentials mechanism for authentication. Can you please tell me what we are missing here.
Hi,
I am also trying to achieve the same but some how it seem the portal user id is not being fetched.
Can you please help me with below query:
1. what will be the type of Parameter in the method HANDLEDEFAULT of Window ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.