on 12-01-2008 3:13 PM
Hi,
All is in the subject. I would like to retreive the PCD path (i mean the path that the user done to access to my iView).
I'm using Web Dynpro for java and ep 7.0
Regards
Hello,
thanks to all the SAP portal specialists who have given me directions where to find answers.
Unfortunaly, these answers are usable to find the PCDs a user is allowed to, not to find the PCD the user has followed to get the view.
But we have found a solution to get this information from the URL parameters, using this simple line of code (we are into a Web Dynpro DC) :
String viewId = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("sap-ext-sid");
and then "viewId" contains the URL-PCD followed by the user !
This code will work only if the view is integrated into a SAP portal, and we can verify this point with the condition :
if ( WDPortalUtils.isRunningInPortal()) .....
I hope this information can help !
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Look this sample code to retrive PCD object.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
to access the PCD content from a web dynpro application,
first, u have to get the current user using the IWDClientUser interface and then u can access the initial content of the portal using the class InitialContext.
check out the code given in the sap help portal
http://help.sap.com/erp2005_ehp_03/helpdata/EN/42/9ddd4cbb211d72e10000000a1553f6/frameset.htm
Regards,
Satya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.