Creating a PCD Object(iview or page) thru API

Hi All,
I found some help regarding creating a PCD Object,
This is the following code
IiViews iViewSrv = (IiViews)
    PortalRuntime.getRuntimeResources().getService(IiViews.KEY);
INewObjectDescriptor IVtoCreate = (INewObjectDescriptor)
    iViewSrv.instantiateDescriptor(CreateMethod.NEW,
        "par:/applications/myProject/components/myComponent",request.getUser());
I am unable to find jar files to compile
what are the jar files which consist of the interfaces Iiviews and IPage, IPages.And where can I find those?
Thanks in Advance
Rgds,
Santhosh

Hi Elda,
First, thanks for a great API discovery for me (a pity I can't reward points to you).
Do you have a link to online documentation on this?
Second, there are 2 solutions:
1. WinRar can search inside jars. Use it to search for the file IiViews.class on the server.
2. Use the great classlocator plugin. See this post for details:
How to use classlocator plugin?
According to my last check the download link no longer works. If that's the case I can send it by e-mail.
Hope that helps,
Yoav.

Similar Messages

  • How to change the ESS objects, iViews and Pages, translation in the portal?

    Hello everyone,
    I'd like to change the standard SAP translation for iView and Pages in the Portal level. Does anybody knows how to do this?
    My landscape is NW2004s and  ESS  for  ECC 6.0
    Regards
    Luciano

    you can change the standard SAP iViews and Pages using the Portal Content Translation feature of the Portal ( go to Content Administration->Portal Content Translation. Follow the instructions at
    http://help.sap.com/saphelp_nw04/helpdata/en/25/08174082fe1961e10000000a155106/frameset.htm
    all ESS iviews and pages have their content "ready for translation" and you can use the instructions above to translate that content.
    Tiberiu
    please award points if response was useful.

  • How to create a pop-up iView or page

    Is it possible to create a pop-up Page or Iview?
    Scenario: When i click on the workset link, the content or the iview should open on a pop-up window.

    Hi ,
    you can set property to open in a new window from property editor of iview.
    I think opening in new window is what you expect?  if you want to develop pop up windows,u can do using custom development.
    Regards,
    Koti Reddy
    Edited by: Koti Reddy Chimalamarri on Mar 5, 2010 9:58 AM

  • Problems deleteting PCD-objects at level 9

    Hi
    Recently our PCD-structure have gotten deeper. Our PCD-structure starts with the folder "Portal Content" at level 1. As a result of the structure getting deeper, I am experiencing problems with deleting PCD-objects, iViews or pages, at level 9. When I right-click on the object and select delete, the tool for finishing the delete never appears.
    Level 8 objects are ok. I am at SAP EP V6.0 SP13.
    Has anyone else experienced problems with this. Were you able to find a workaournd?
    Help would be much appreciated.

    Hi Reidun,
    I am using EP 6.0.14.0.0
    I tried it and I am not facing this problem.
    I think..I came with a same kind of problem earlier.
    When I try to create the directory structure in my local File System using Java it was not creating deeper directories more than level 7.
    This is because of some restriction in char length I think.
    Do onething..Try to Reduce the length of your folder/roles/pages/iviews  names.
    like
    Sample :
    If you have
    "MyPCDFolderStructureOne" then reduce it to
    "PCDOne" - just for sample
    Regards,
    Karthick

  • Managing iViews and other PCD Objects

    Hi,
    I have visited some help on Managing iViews and other PCD Objects at
    http://help.sap.com/saphelp_nw04/helpdata/en/fd/ea5c42da4de92ce10000000a1550b0/frameset.htm
    But I want to know when are these things actually put to use. For example, I would simply create an iview and add it to a page. Can you give me a real scenario where this is required. Especially if any of you have used this on your projects.
    How do I start if I wish to pick up this feature? Any blogs on good exapmles which I can use deploy and learn?
    Thanks!!

    HI,
    Refer these links
    <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3367e690-0201-0010-d285-c69bd884c9f3">PCD</a>
    <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4192">weblog</a>
    <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4109">weblog1</a>
    ====================================
    I just tried out some of the API's, i hae not encountered any business scenario's concerning these API's.

  • Creating PCD object via API

    Is is possible to programmatically create PCD objects such as iViews/Pages etc.?

    Hi,
    The way to create PCD objects such as iViews and pages is documented in the following link in the help portal (Portal --> Developer Guide --> Developing Applications --> Creating Content --> Managing iViews and Other PCD Objects:
    http://help.sap.com/saphelp_nw04/helpdata/en/fd/ea5c42da4de92ce10000000a1550b0/frameset.htm
    Here's an overview for creating an iView from a PAR and adding it to the folder at pcd:portal_content/myFolder :
    IiViews iViewSrv = (IiViews)
        PortalRuntime.getRuntimeResources().getService(IiViews.KEY);
    INewObjectDescriptor IVtoCreate = (INewObjectDescriptor)
        iViewSrv.instantiateDescriptor(CreateMethod.NEW,
            "par:/applications/myProject/components/myComponent",
                request.getUser());
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,
        IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
    env.put(Context.SECURITY_PRINCIPAL, request.getUser());
    env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
    InitialContext iCtx = null;
    try
        iCtx = new InitialContext(env);
        String folderName = "pcd:portal_content/myFolder";
        Context ctx = (Context)iCtx.lookup(folderName);
        ctx.bind("myNewHelloIV", IVtoCreate);
    catch(Exception e)
    Hope this helps.
    Daniel

  • How to recover the objects (iView, Page etc) that have already been deleted

    Dear All,
    We found the problems. We deleted the objects (such as iViews, System, Pages, Workset etc.) that we don't want to delete it. If there is the way to recover them, please help us.
    Thank you very much.
    Anek.

    HI,
    You can use PCD Inspector  and try to recover your iviews and pages.
    This link will tell u how to use it:
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4ee6d3ee-0901-0010-658f-d9b21cdebce4|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4ee6d3ee-0901-0010-658f-d9b21cdebce4]
    You can download it from SDN from [here|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4929b690-0201-0010-c992-c8f0a2546d3f]
    I hope it helps
    Regards,
    Sumit

  • Creating a File object in a JSP page

    Hi,
    I am trying to create a File object in my JSP page by passing it a relative path. The jsp page is in 'website/testfolder/index.jsp' and the File is in 'website/photos/1.jpg'. In my jsp page i do the following:
    <% File f = new File("../photos/1.jpg");
    boolean test = f.isFile(); %>
    The value returned is false. I am trying to figure out why it can't locate the file.
    Thanks

    You have to use absolute paths. You can get the absolute path for the given relative path by ServletContext#getRealPath().

  • Gettting 0x800a139e - JavaScript runtime error: SecurityError on creating websocket object in .js page

    Hi Team,
    I am creating a websocket object in the existing webapplication I have. When creating the object with url :    var url = 'ws://localhost:4334//WebSocketServer.ashx?name=Satya'; getting error  . 0x800a139e - JavaScript runtime error: SecurityError.
    var ws;
    var message ;
    var messageVal;
    function $(id) {
        return document.getElementById(id);
    function wireEvents() {
        $('sendChat').addEventListener('click', function () {
            message = $('message');
            ws.send(message.innerText);
            messageVal=message.innerText;
            message.innerText = '';
        $('btnCancelChat').addEventListener('click', function () {
            ws.close();
    function Chat () {
        wireEvents();
        var conversation = $('conversation');
        var url = 'ws://localhost:4334//WebSocketServer.ashx?name=Satya';
        //var url = 'ws://https://127.0.0.1:444/WebSocketsServer.ashx?name=Satya';
        ws = new WebSocket(url);
        ws.onerror = function (e) {
            conversation.appendChild(createSpan('Problem with connection: ' + e.message));
        ws.onopen = function () {
            //conversation.innerHTML = 'Client connected <br/>';
        ws.onmessage = function (e) {
            conversation.appendChild(createSpan(e.data.toString()));
        ws.onclose = function () {
            conversation.innerHTML = 'Closed connection!';
    The same works fine if i create a new application i access as a HTML page on page load.
    Can any one help me on this?
    Thanks,
    Satya Chenna

    http://forums.asp.net/
    The JavaScript section is at the above forum.

  • How to create deltalinks between object in Generic Creator

    Hi
    Portal Version = NW 04 Stack 16
    I have had an look to the How to guide for "How to automate content
    creation via XML" https://websmp102.sap-ag.de/~form/sapnet?
    SHORTKEY=00200797470000073623&OBJECT=011000358700003443012004E
    I am looking for an issue where I create four folders (iviews, pages,
    roles, worksets) with objects and sametime create deltalinks between
    theese objects.
    I am currently able to create a role with worksets and pages, but then
    I am not able to see the objects in the PCD structure other than the
    role.
    Any idea where to find information about this and better how to perform
    such an issue.
    Regards
    Kay-Arne S. Aarlie

    Hi,
    The Portal Catalog -- the pane you see on the left when you are in Content Administration -- you only see the role and not the pages and iViews inside. You have to open the role for editing to see what's inside.
    You can also use the PCD inspector if you want to browse through the objects in a role.
    You create delta links with the generic creator simply by specifying a PCD address in the template attribute of the <Context> element.
    Hope this helps.
    Daniel

  • Reading PCD object PCD location

    Dear friends,
    I am listing PCD objects like iViews, pages, etc. in a listbox.
    I want to use PCD Location of individual objects in the listbox
    Can anybody help me, how to read or retrive the PCD Location data. I could able to read Title and Description.
    Plz reply me
    thanx in advance
    Lakshmikantha

    Hi,
    Looking Up Objects
    This section describes how to look up a PCD object by performing a JNDI lookup and supplying the PCD address of the object.
    Procedure
           1.      Create an instance of the helper object for the type of semantic object that you want to create, such as, IiViews for an iView, ISystems for a system, and so forth.
    IiViews iViewSrv = (IiViews)
        PortalRuntime.getRuntimeResources().getService(IiViews.KEY);
           2.      Set the parameters for a JNDI lookup in the PCD.
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,
        IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
    env.put(Context.SECURITY_PRINCIPAL, request.getUser());
    env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
           3.      Perform the lookup by supplying the PCD address of the object, and then cast the returned object to the appropriate semantic object interface.
    InitialContext iCtx = null;
    try
        String iViewID = "pcd:portal_content/myFolder/stocks";
        iCtx = new InitialContext(env);
        IiView result =(IiView)iCtx.lookup(objectAddress);
    catch(Exception e)
    REFER the link for more informatiion
    http://help.sap.com/saphelp_nw04/helpdata/en/fd/ea5c42da4de92ce10000000a1550b0/frameset.htm

  • 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

  • PCD Audit : What information about the PCD objects are stored in the PCD?

    Folks,
    Need some information on the information stored in the PCD for audit purposes.
    Object = Any PCD object, typically iView, Page, Workset, Role, Group...
    1. Creation of any object - Should definately be present in the PCD
    2. Any modification including history - List of all actions on any PCD object - I am sure the last modification is tracked, but can we track every change to the object from creation?
    3. Deletion of any object? - This I am not sure of - Does the PCD store information about deleted object's like deletion time stamp and the user who deleted etc?
    Thank you...

    Hi,
    >>1. Creation of any object - Should definately be present in the PCD
    There is no doubt about this.
    >>2. Any modification including history - List of all actions on any PCD object - I am sure the last modification is tracked, but can we track every change to the object from creation?
       <b>AND</b>
    >>3. Deletion of any object? - This I am not sure of - Does the PCD store information about deleted object's like deletion time stamp and the user who deleted etc?
    There is no versioning concept in PCD right now, but ofcourse planned for future.
    So you cannot track the history and deleted objects, but there exists PCD Repository Manager in KM on which you can activate versioning. Check if this suites your needs. Never tried but logically ever PCD change should get versioned here.
    http://help.sap.com/saphelp_nw70/helpdata/en/76/a8934259a5cc6ae10000000a155106/frameset.htm
    Greetings,
    Praveen Gudapati

  • 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

  • Changing name of PCD object EP 6.0 SP11

    Hello,
    in connection with the introduction of a new name standard I need to change the name, id and prefix of a number of iviews and pages.
    I do this by using the "Change id" command. The prefix and id are changed, but I am unable to change the name. Even if I write a new name it is not saved. 
    If I set the name in the properties list (after opening the object), it is saved, but the old name still appears in the PCD structure. I have tried refresh, and deleting the browser cache.
    Anyone have a solution to this problem?

    Hi,
    I have the same problem Jørgen has (NW04 SPS 11 Patch 3, German speaking environment).
    I switched the portal language to "english" and copies of predefined SAP content now can be renamed. In fact, name changes I made when the portal was still switched to "german" and which then seemed to have failed suddenly turned out having been successfull.
    The problem is that this doesn't solve the problem, because the name changes back to its (original) english version when switching back the portal language to german.
    Why is it that only (copies of) predefined SAP content behave like that? Are there any rights or attributes that get copied along with the objects and which have to be altered?
    Thanks,
    Jens

Maybe you are looking for