Retrieve CodeLink of PCD iView

I have written a JSPDynPage application to list all IViews in the PCD.  For each iView in the list, I want to display several attributes.  I am successfully retrieving "last changed by" as well as "quicklink", but I have not been able to retrieve "CodeLink".  The call for CodeLink returns a nullPointer.   See code below.  Any thoughts on how to successfully retrieve the "CodeLink" attribute?  Thanks in advance!
try {
    this.setLastChangedBy(
    sr.getAttributes().get("com.sap.portal.pcd.gl.LastChangedBy").get().toString());
} catch (Exception e) {
   this.setLastChangedBy("");
try {
    this.setQuicklink(
    sr.getAttributes().get("com.sap.portal.navigation.QuickLink").get().toString());
} catch (Exception e) {
    this.setQuicklink("");
try {
    this.setCodeLink(
    sr.getAttributes().get("CodeLink").get().toString());
} catch (Exception e) {
    this.setCodeLink(e.toString());

I also ran into this issue in the past, not being able to retrieve the 'CodeLink' attribute during the lookup process and I could not find any workaround for this issue. I was looking for all appintegrator iViews so I was checking for all iViews with 'System' attribute (refer to java code):
private List getiViewsList(String searchRoot, IUser user) {
          List list = new ArrayList();
          try {
               String searchString = "(&" + SEARCH_STRING + ")";
               Hashtable env = new Hashtable();
               env.put(Constants.REQUESTED_ASPECT,IPcdAttribute.PERSISTENCY_ASPECT);
               env.put(IPcdContext.SECURITY_PRINCIPAL, user);
               env.put(Context.INITIAL_CONTEXT_FACTORY,IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
               InitialContext iCtx = new InitialContext(env);
               IPcdContext searchRootCtx = (IPcdContext) iCtx.lookup(searchRoot);
               PcdSearchControls ctls = new PcdSearchControls();
               //ctls.setSearchScope(PcdSearchControls.UNIT_ROOTS_ONLY_SCOPE);
               ctls.setSearchScope(PcdSearchControls.SUBTREE_SCOPE);
               ctls.setReturningObjFlag(true);
               NamingEnumeration enum1 =searchRootCtx.search("", searchString, ctls);
               while (enum1.hasMore()) {
                    SearchResult result = (SearchResult) enum1.next();
                    IPcdContext pcdCtx = (IPcdContext) result.getObject();
                    String alias =pcdCtx.getAttributes("").get(ATTR_ID_SYSTEM).get().toString();
                    //String codelink = pcdCtx.getAttributes("").get(ATTR_ID_CODELINK).get().toString();
                    list.add(new IViewInfo(pcdCtx.getNameInNamespace(), alias));
          } catch (NamingException e) {
               return null;
          return list;
- (See next message for more details)
Edited by: Ehud Felus on May 16, 2010 2:57 PM

Similar Messages

  • How to get the PCD iviews to WPC

    Hi Frndz,
    Am  new to WPC , here I struck up at to expose my custom PCD iviews to WPC.I have created a folder in PCS "myContent"under this i have some custom ivews which I need to use in WPC but unfortunetly am not ale get those where am able to get the folder which I created "myContent" but not iview under the folder.
    Kinldy let me know how to do it, I have doubt here while createing a iview should we do following steps ?
    1)Choose  Content Administration  Portal Content .
    2)Choose  New  iView  from the context menu of a folder.
    3)Choose Portal component as the source type.
    4)Choose the com.sap.nw.wpc.runtime portal archive.
    5)Choose the default component.
    6)Specify the general properties of the iView.
    7)After you have saved the new iView, open it for editing.
    8)Choose Web Page Composer from the property category dropdown menu.
    9)In the RID of Compound Document property, enter the path to the KM folder representing the Web page.
    /wpccontent/Sites/MyWebSite/Web Pages/MyWebPage
    or we can expose any kind of iview  ?
    Thanks in advacen
    Regards
    Rajesh

    Hi, Rajesh.
    Try to use the solution provided in this link: http://forums.sdn.sap.com/thread.jspa?threadID=1276261
    Regards, Mikhail.

  • Set transaction code property of PCD Iview

    Hi ALL
    I have a SAP transaction Iview sitting in my PCD. I want to access this Iview, set its transaction code property to the transaction that the user selects on the Iview of my web dynpro application.
    The idea is to set the Tcode and then navigate to that Iview taking pcd location.
    Please help on how to set the properties and invoke the iview

    Sanjay,
       That's what the mentioned post talks about, isn't it?
    You should pass the parameter while doing a portal navigation.
    Go through the following blogs:
    1. /people/prakash.singh4/blog/2005/10/07/how-to-launch-sap-transaction-pass-parameters-via-url
    2. /people/durairaj.athavanraja/blog/2004/09/23/pass-parameter-to-its-url-upadated-21st-june-2008
    You should use a code like this:
    String parameter = "System=" + <portal system> + "&TCode=" + <transaction code as selected by user>;
    WDPortalNavigation.navigateAbsolute(
    "ROLES://<pcd location>",
    WDPortalNavigationMode.SHOW_EXTERNAL,
    WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
    parameter,
    true,
    true);
    Regards,
    Satyajit.
    Message was edited by: Satyajit Chakraborty

  • How to retrieve the type of iView?

    Hi Experts,
    I would have a simple question, I have an ivew on my portal, but I am not able to find the type of this iview. I need the name of the iview template like WebDynpro, Transaction, BW, URL, Query ect.
    Thanks,
    Levente

    If you want to find the type of the iView from the code you can use the API which is described in the following document.
    <https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401>
    But I guess, you should be knowing the type of the iView using the Delta Link Tracer. Atleast I am able to see that.
    Sudhir
    Reward with points if useful

  • How to add PCD iview in web page composer.

    I have created an KM navigation iview for user messages.I want to add this iview in web page composer.i tried creating entry point but not able to see any changes in web page composer designer.
    Regards,
    Atul Dumbre

    Hi,
    have you executed the steps outlined here?
    http://help.sap.com/saphelp_nw2004s/helpdata/en/06/4776399abf4b73945acb8fb4f41473/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/45/e58347f5546976e10000000a1553f6/content.htm
    Important steps are: "Deactivate the Hide in Root Folder checkbox." & "Restart the servlet engine."
    How did you configure the entry points provider? sharedcontent=/wpccontent/Cross-Site Content;/documents/MyFolder
    br,
    Tobias

  • Getting PCD folder name of iView

    Hi guys,
    I'm writing an application to print out the iViews and their properties in Folder A, which consists of sub-folders B and C. THus, the application is retrieving and printing the iViews in sub-folders B and C as well. However, apparently, the iViews are not retrieved in any sequence and it is hard to tell which folder the iView belongs to. Is there anyway to retrieve the folder where the iView resides?
    Thanks,
    Zhenmin

    Hello,
    The pcd path of the iview contains the folder id also.
    Or better, serach the iview and then right click and select "Locate in Portal Catalogue". That way u can get the complete folder structure where the iview is stored.
    Regards
    Deb

  • How can I fetch all the PCD roles from EP!

    Hello,
    I need to fetch all the available pcd roles in EP. Right now I am trying to fetch pcd roles under Portal Content directory. I need a clarification whether this is the only place the pcd roles are available or is there any other location where rest of the pcd roles are available?
    Thanks in advance,
    Prashanth V Swamy

    Hi Prasanth,
    See the code below to retrieve all the pcd roles.
    public List getPCDContents(IPortalComponentRequest request) throws Exception{
                   try{
                        Hashtable env = new Hashtable();
                        env.put(IPcdContext.SECURITY_PRINCIPAL, request.getUser());
                        env.put(Context.INITIAL_CONTEXT_FACTORY,IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
                        env.put(com.sap.portal.directory.Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
                        InitialContext ctx = null;
                        DirContext dirCtx;
                        List roleList = null;
                        ctx = new InitialContext(env);
                        dirCtx = (DirContext) ctx.lookup("pcd:portal_content/");
                        PcdSearchControls pcdSearchControls = new PcdSearchControls();
                        pcdSearchControls.setReturningObjFlag(false);
                        pcdSearchControls.setSearchScope(
                             PcdSearchControls.SUBTREE_WITH_UNIT_ROOTS_SCOPE);
                        dirCtx.addToEnvironment(
                             Constants.APPLY_ASPECT_TO_CONTEXTS,
                             Constants.APPLY_ASPECT_TO_CONTEXTS);
                        NamingEnumeration ne =
                             dirCtx.search("","(com.sap.portal.pcd.gl.ObjectClass=com.sapportals.portal.role)",
                                  pcdSearchControls);
                        iViewList = new ArrayList();
                        while (ne.hasMoreElements()) {
                             IPcdSearchResult searchResult =
                                  (IPcdSearchResult) ne.nextElement();
                             String location = "pcd:portal_content/" + searchResult.getName();
                             //Get the full pcd path of the iview.
                             roleList.add(location);
                        return iViewList;
                   }catch(Exception e ){
                        throw new Exception(e);
    Hope it helps.
    Regards,
    Karthick

  • System Connection Test was not fully tested but all web dynpro java app and Transaction iviews working fine.Any problem for this Kind of activity Lets give some idea.

    System Connection Tests
    You can test the connectivity to the backend application represented by the current system object. Choose the relevant tests.
    Note: The test is based on the properties currently defined in the system object. It does not check if the system properties are correct.
    System Connection Tests
    Test Name
    Description
    Status
    SAP Web AS Connection
    Tests the connection to an SAP Web Application Server
    ITS Connection
    Tests the connection to an SAP ITS server
    Connection Test for Connectors
    Tests the connection to a backend system using an associated connector
    Test
    Clear Results
    Results
    SAP Web AS Connection
    Test Details:
    The test consists of the following steps:
    1. Checks the validity of system ID in the system object.
    2. Checks if the system can be retrieved from the PCD.
    3. Check whether a SAP system is defined in the system object
    4. Validate the following parameters: WAS protocol; WAS host name
    5. Checks if the host name of the server can be resolved.
    6. Pings the WAS ping service; works only if the service is activated on the ABAP WAS.
    7. Checks HTTP/S connectivity to the defined back-end application
    Results
    1. The system ID is valid
    2. The system was retrieved.
    3. The system object represents an SAP system
    4. The following parameters are valid: Web AS Protocol (http) Web AS Host Name 
    5. The host name ssprdxi.stylespasapnet.com was resolved successfully.
    6. The Web AS ping service was pinged successfully.
    7. An HTTP/S connection to was obtained successfully.
    ITS Connection
    Test Details:
    The test consists of the following steps:
    1. Checks the validity of system ID in the system object.
    2. Checks if the system can be retrieved from the PCD.
    3. Check whether the system object has a valid system alias
    4. Check whether a SAP system is defined in the system object
    5. Validate the following parameters: ITS protocol; ITS host name
    6. Checks if the host name of the server can be resolved.
    7. Checks HTTP/S connectivity to the defined back-end application
    Results
    1. The system ID is valid
    2. The system was retrieved.
    3. Retrieval of the default alias was successful
    4. The system object represents an SAP system
    5. The following parameters are valid: ITS Protocol (http) ITS Host Name ()
    6. The host name ssprdxi.stylespasapnet.com was resolved successfully.
    7. An HTTP/S connection to was obtained successfully.
    Test Connection with Connector
    Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the backend application using the connector defined in this system object
    Results
    Retrieval of default alias successful
    Connection failed. Make sure that Single Sign-On is configured correctly
    regards
    Antony

    Hi Stefan,
    This correct see SAP Note [947081|https://service.sap.com/sap/support/notes/947081]
    If the locale for the Web Dynpro iView is changed in the portal (through portal personalization), this is not reflected in the running login session. The user needs to logoff and login again, in order to see the locale change in the Web Dynpro iView.
    Regards,
    Leo

  • Problem while creating SAP Web Dynpro iView

    Hi,
    I am creating SAP Web Dynpro iView from iView Template.
    The SAP Web Dynpro System Object is being created. The System Alias is also being created.
    The Test Connection is successful with Portal Server.
    Now, while creating SAP Web Dynpro iView from Template in Step 4:
    I am not getting my System while an old system which is being deleted is being displayed.
    Name of my System Object is: WD_System and System alias is: WD_Alias.
    The Step name is:
    Step 4:  Application Parameter
    Enter the paramater(s) of the application for which you want to create the iView 
    Regards
    Kaushik Banerjee

    Hi Bala,
    I am not getting the System Alias under:
    User Administration-> User Mapping-> Logon Data(Select a Principal) (System Alias).
    The System is successfully built under System Amininstration->System Configuration->System Landscape->Portal Content->kaushikb named WD_System and System Alias is named as: WebDynpro_alias.
    The Test Connection is successful.
    I am displaying the result below:
    SAP Web AS Connection
      Test Details:
    The test performs the following:
    1. Checks the validity of the system ID in the system object.
    2. Checks if the system can be retrieved from the PCD.
    3. Checks if a SAP system is defined in the system object
    4. Validate the following parameters: WAS protocol; WAS host name
    5. Checks if the host name of the server can be resolved.
    6. Pings the server to see if it is alive.
    7. Pings the WAS ping service; works only if the service is activated on the ABAP WAS.
    8. Checks HTTP/S connectivity to the defined back-end application
    Results
    1. The system ID is valid
    2. The system was retrieved.
    3. The system object represents an SAP system
    4. The following parameters are valid: Web AS Protocol (http) Web AS Host Name (kolapon:50000)
    5. The host name kolapon was resolved successfully.
    6. The server kolapon was pinged successfully.
    7. The WAS ping service http://kolapon:50000/sap/bc/ping was not pinged successfully. If the ping service is not activated on the WAS, you can try to call the ping service manually.
    8. An HTTP/S connection to http://kolapon:50000 was obtained successfully.
    Regards
    Kaushik Banerjee

  • Iview Templeates are not dispaled?

    Hi Everone,
    I Am using SAP EP 7.0.
    I Want to create transaction iview in the portal.
    i go to portal content->select my folder->new ->iview->iviews->
    Now it is not displaying list of iview templates.
    how to get the list of iview templates.
    thanks
    subbarao chinta

    Check the below threads that may help you.
    No iView Templates Found in EP7 PCD
    iView templates are not available.
    Raghu

  • Does any KM folders contain PCD

    Hi all,
    Does any folder in KM contain the PCD(iViews/Pages) ?
    Thanks in advance.
    Janvi

    Hi,
    since NetWeaver 04 SPS14 KM is delivered with a read-only PCD Repository Manager. See the SPS14 Release Note for futher information.
    Regards,
    Stefan

  • Error while creating a system object for R3 in portal

    Hi,
    I am getting error while trying to create a system object in portal.
    Following are the details I used :
    Under WAS...
    Web AS Host Name :<XXXX>:8001
    Web AS path: /sap/bc/bsp/sap/
    Web AS protocol : http
    Under User management:
    Authentication Ticket Type : SAP Logon Ticket
    Logon Method :SAPLOGONTICKET
    User Mapping Type : admin,user
    Under Connector:
    SAP Client : <Client NO>
    SAP System ID : <System ID>
    SAP System No : <System No>
    System Type : SAP_R3
    While trying with connection test... I am getting like this:
    SAP Web AS Connection
      Test Details:
    The test consists of the following steps:
    1. Checks the validity of system ID in the system object.
    2. Checks if the system can be retrieved from the PCD.
    3. Check whether a SAP system is defined in the system object
    4. Validate the following parameters: WAS protocol; WAS host name
    5. Checks if the host name of the server can be resolved.
    6. Pings the server to see if it is alive.
    7. Pings the WAS ping service; works only if the service is activated on the ABAP WAS.
    8. Checks HTTP/S connectivity to the defined back-end application
      Results
    1. The system ID is valid
    2. The system was retrieved.
    3. The system object represents an SAP system
    4. The following parameters are valid: Web AS Protocol (http) Web AS Host Name (<FQDN server name>:8001)
    5. The host name <FQDN Server Name> was resolved successfully.
    6. The server sapdwh01 could not be pinged successfully.
    Test Connection with Connector
      Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the backend application using the connector defined in this system object
      Results
    Retrieval of default alias successful
    Connection failed. Make sure that Single Sign-On is configured correctly
    It seems that the portal is not able to ping to R3 system. I tried to ping to R3 server from portal server by command prompt. I am able to ping. Also under SICF, I can see ping service as in activated state.
    Kindly help.
    Regards,
    Niraj
    Edited by: Niraj Kumar on Dec 11, 2008 10:41 AM

    I created a SAP Transactional iView for transaction SE80.
    Also, I tried from under System Administration -> Support -> SAP Transaction. It is not working.
    Got portal Runtime error :
    Portal Runtime Error
    An exception occurred while processing your request
    Exception id: 12:57_11/12/08_0003_2795650
    See the details for the exception ID in the log file.
    Regards,
    Niraj

  • Problem while creating Logical System Connecting Portal to ECC (Backend)...

    Hi
    - I am trying to connect portal to ABAP so that from portal's iView i could access any ABAP T-Code (e.g. SE37).
    - Secondly, just wanted to let you know that i am not implementing SSO.
    - I used iView's SAP GUI Type = SAP GUI for HTML.
    I made following 3 tests, out of which ITS connection is failed. and while previewing my iView i m not able to connect with ABAP and giving error:  "The URL http://192.168.1.104:8001/sap/bc/gui/sap/its/webgui was not called due to an error."
    Could u pls guide me what to do....  And i mentioned everything at the bottom in detail.
    Thanks & looking forwarded for your replies.....
    SAP Web AS Connection (Successful)
    Test Details:
    The test consists of the following steps:
    1. Checks the validity of system ID in the system object.
    2. Checks if the system can be retrieved from the PCD.
    3. Check whether a SAP system is defined in the system object
    4. Validate the following parameters: WAS protocol; WAS host name
    5. Checks if the host name of the server can be resolved.
    6. Pings the server to see if it is alive.
    7. Pings the WAS ping service; works only if the service is activated on the ABAP WAS.
    8. Checks HTTP/S connectivity to the defined back-end application
    Results
    1. The system ID is valid
    2. The system was retrieved.
    3. The system object represents an SAP system
    4. The following parameters are valid: Web AS Protocol (http) Web AS Host Name (192.168.1.104:8001)
    5. The host name 192.168.1.104 was resolved successfully.
    6. The server 192.168.1.104 was pinged successfully.
    7. The Web AS ping service http://192.168.1.104:8001/sap/bc/ping was pinged successfully.
    8. An HTTP/S connection to http://192.168.1.104:8001/sap/bc/bsp/sap was obtained successfully.
    ITS Connection (Failed)
    Test Details:
    The test consists of the following steps:
    1. Checks the validity of system ID in the system object.
    2. Checks if the system can be retrieved from the PCD.
    3. Check whether the system object has a valid system alias
    4. Check whether a SAP system is defined in the system object
    5. Validate the following parameters: ITS protocol; ITS host name
    6. Checks if the host name of the server can be resolved.
    7. Pings the server to see if it is alive.
    8. Checks HTTP/S connectivity to the defined back-end application
    Results
    1. The system ID is valid
    2. The system was retrieved.
    3. Retrieval of the default alias was successful
    4. The system object represents an SAP system
    5. The following parameters are valid: ITS Protocol (http) ITS Host Name (192.168.1.104:8001)
    6. The host name 192.168.1.104 was resolved successfully.
    7. The server 192.168.1.104 was pinged successfully.
    8. User mapping is valid
    9. An HTTP/S connection to http://192.168.1.104:8001/sap/bc/gui/sap/its/webgui/ was not obtained successfully; this might be due to a closed port on the Firewall.
    Test Connection with Connector (Successful)
    Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the backend application using the connector defined in this system object
    Results
    1. Retrieval of default alias successful.
    2. Connection successful.
    I am getting following error while Previeiwng iView.
    Error when processing your request
    What has happened?
    The URL http://192.168.1.104:8001/sap/bc/gui/sap/its/webgui was not called due to an error.
    Note
    The following error text was processed in the system D10 : Template interpretation cancelled, syntax error.
    The error occurred on the application server eccdcs1s_D10_01 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
          SYSTEM-EXIT of program SAPLSFUNCTION_BUILDER
          Function: RS_FUNCTION_INITIAL_SCREEN of program SAPLSFUNCTION_BUILDER
          Method: IF_WB_PROGRAM~PROCESS_WB_REQUEST of program CL_FB_FUNCTION_INITIAL_SCREEN=CP
          Method: DO_THE_NAVIGATION of program CL_WB_NAVIGATOR===============CP
          Method: DO_THE_NAVIGATION of program CL_WB_NAVIGATOR_VIS_AS_DYNPRO=CP
          Method: PROCESS_WB_REQUEST of program CL_WB_MANAGER=================CP
          Method: PROCESS_REQUEST_QUEUE of program CL_WB_MANAGER=================CP
          Method: IF_WB_MANAGER~SET_WORKSPACE of program CL_WB_MANAGER=================CP
          Method: START_INTERNAL of program CL_WB_STARTUP=================CP
          Module: MANAGER_START of program SAPLWB_MANAGER
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the   system D10 in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server eccdcs1s_D10_01 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server eccdcs1s_D10_01 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 001 -u: SAPUSER -l: E -s: D10 -i: eccdcs1s_D10_01 -w: 0 -d: 20090924 -t: 202054 -v: RABAX_STATE -e: ITS_CANT_LOAD_INCLUDE
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    Edited by: Harpal Singh on Sep 24, 2009 4:55 PM

    Hi,
    > Goto SE80, Select "Internet Service". Give service name as WEBGUI and enter. Right click on the WEBGUI and select Publish -  > Complete service.
    Source : http://wiki.sdn.sap.com/wiki/display/BI/BiAdminCockpit+Issues
    Or call transaction SIAC_PUBLISH_ALL_INTERNAL to publish all services.
    [Note 964521 - Short dump ITS_CANT_LOAD_INCLUDE w/ call of SAP GUI for HTML|https://service.sap.com/sap/support/notes/964521].
    Regards,
    Pierre

  • UWL / GP Integration Issue

    I'm trying to configure the UWL to access local GP items.  I've created a new system definition, using SAP_LocalSystem and the Guided procedures Connector.  I've also updated the uwl.gp.config with the latest version. 
    However, when I navigate to the UWL, I get this message:
    An error occurred while trying to connect to the provider
    and no GP work items are displayed.  In the logs, I see this:
    PCD lookup for system object "pcd:portal_content/com.example.fld_example/com.example.fld_projects/com.example.intranet.fl_intranet/com.example.intranet.fld_systems/com.example.sys_test_sys" (system alias "{1}") failed. User mapping data for the system cannot be retrieved. User mapping iViews will not display the system
    Why is the UWL trying to lookup the 'sys_test_sys' object (which doesn't exist, hence the error message)?  I've tried flushing the GP caches, and restarting the server, to no avail.
    I've done this same config on other portals, and the integration has been successful.
    Ideas?

    Hi,
    Follow this url for the FAQ's:
    http://wiki.sdn.sap.com/wiki/display/BPX/UWL%20FAQ#UWLFAQ-Errormessage%C2%A0whiletryingtoconnecttoprovider
    Thanks,
    Rajani

  • Problem with IPortalComponentSession

    Retrieving an object from a IPortalComponentSession gives two different values.
    My problem occurs in an Java-iView which is realized as extension of DynPage; the Portal is 6.0 SP13.
    A value (of type String) which is stored in a IPortalComponentSession should be retrieved on refreshing an iView:
    The value is stored with
    getRequest().getComponentSession().putValue("myAttr", myValue);
    It is read again in doInitialization() with
    getRequest().getComponentSession().getValue("myAttr")
    which is called (according to trace) when the iView is redisplayed after switching the page or after selecting "Refresh". This is as expected, but here is the problem: I get different values dependent of the reason for the redisplay! That is I get <i>value1</i> after page-switching and <i>value2</i> after refresh; as long as I don't change the value in the session, I can force the refresh of the iView as often as I want, I always get these two different values.
    I'm pretty sure that this problem didn't exist in SP2 but appears since SP12 or earlier.
    The iView is embedded with isolation method URL and cache is switched off.
    In trying to get more information I dumped all attributes of the underlying http-session and they seem to be identical in both cases.
    The value which I get after page-switching I found in the part
    "UNIQUE:pcd:<pcd-path>|<url-encoded-pcd-path>|myAttr="
    whereas the value which I get after Refresh I found in the part
    "UNIQUE:com.sap.portal.pagebuilder.IviewModeProxy|com%2esap%2eportal...<url-encoded-pcd-path>|myAttr=".
    Maybe this is helpful for the diagnosis of my problem.
    Any hint is appreciated.
    Thanks in advance,
      Matthias Schneider

    Matthias
    If I understand you correctly, you set a value into the component session. This value you would like to retrieve in the doInitialization method fo the portal component. However, this value is not set correctly when you switch to another page that has this same iview on it.
    If this is the case, then I don't think that this is going to be possible to achieve. The reason for this is that I believe a new IPortalComponentSession is created when you switch to a new page, as opposed to simply refreshing an iview within the same page. .
    One possible method you could use would be to set the value in the client data bag instead, as I think that this may be available across pages.
    I hope this helps
    D

Maybe you are looking for

  • Partner profile not available.

    Dear Folks, i am doing the scenario JDBC to IDOC. For that i did all the necessary ALE settings and configured the systems. While executing that scenario. In we02, i am getting the error partner profile not available eventhough i configured it. From

  • Field-symbols as class attribute

    Hi Fellas, Is there a way we can define a field-symbols as a class attribute ? My requirement is that i am dynamically constructing a structure at runtime in my model class and binding the component of this structure to my view fields. I am able to c

  • Download Error (480) when trying to download rented movie

    Hello all. Managed to install the update. Everything seems to be working fine. Then decided to rent a movie, accepted the payment etc. but when I try to download I keep getting "Download Error (480)" and a notification to go to "Check Downloads" and

  • How do i get a work authorization form for a repair?

    My MacBook Pro has some structural damage and I am trying to get it repaired. I have a reservation at the Genius Bar set for Wednesday. On the website however, it says that if a repair is needed, then I need a work authorization form and to bring it

  • Call for adobe form is going for dump for multiple users

    hi, i am calling an adobe form in a program i.e. for multiple users. now my problem is..... 3 people are using same tcode to generate the adobe form output for different data. but when they click at a time on the button to generate the adobe output,