PCD Path Objects

Hi Daniel,
This is giving only the PageName,How Can I retrieve full pcdpath of this Page.
Regards,
Karthick

Hi Karthick,
The getName() method gives you the path to the object, starting from where you started the search.
So in the the previous example, you would do something like this to get the full path:
roleID + "/" + sr.getName()
Hope this helps.
Daniel

Similar Messages

  • Determine system aliases from PCD path?

    I'm trying to display all the system objects in the PCD, along with their associated aliases.  I'm able to traverse the PCD via the JNDI interface, and I can pick out all the systems (based on the class name).
    However, at this point I'm stuck.  I've tried various methods of trying to fetch the system object from the PCD, but nothing seems to work.
    Given a PCD path, how can you fetch the related object? 
    I'm trying to do this:
    Object o = ctx.lookup( "pcd:portal_content/Collaboration_Integration_WebEx" );
    'o' is a com.sapportals.portal.pcd.gl.PcdGlContext, which I assume should be accessed via IPcdContext.  However, this isn't a system object; rather, it seems to be another lookup mechanism.
    Any suggestions would be most welcome.
    BTW, I've also looked at using the Portal Service for systems, ala
    ISystems systemSrv = (ISystems) PortalRuntime.getRuntimeResources().getService(ISystems.KEY);
                   IPrincipal prin = getServiceUser("pcd_service");
                   String aliases[] = systemSrv.getAliases(prin, true);
    but this doesn't seem to return all aliases in the system (and therefore not all systems), whereas traversing the PCD manually does return all defined systems.
    Message was edited by: Ken Miller

    Hi Ken,
    I suggest doing the look up this way:
    Once you get the PCD address for each system, do a lookup to get the semantic object (ISystem) for the system:
    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
        String systemID = "pcd:portal_content/myFolder/mySystem";
        iCtx = new InitialContext(env);
        ISystem result =(ISystem)iCtx.lookup(systemID);
    catch(Exception e)
    Either way, when you look up the title (a text attribute), you must supply the locale. For example:
    result.getAttribute ("attribute",request.getLocale() )
    Hope this helps.
    Daniel

  • How to make path object clickable in flex 4.0

    hi , i apprechiate if any one can help me out  with my problem here as i am new to flex
    I am developing a flex web application and in one my components i need to draw paths around some shapes , i did this easily but my problem is that i need to make changes in response to user  mouse click or mouse hover events over that path.
    the problem is that the path object do not have any events accept the activate event. any one can help me out on this one .

    thanks for your reply but my problem is not to recreate the path based on an event
    what i need is to listen to the click event on the path itself after it is created and diplayed to the user so that when the path is clicked i can change application state.

  • While Accessing UWL iviews - Issues with PCD Paths.

    Hello All,
    We Are using EP 7.0 SP 18.
    I am trying to access the UWL  iview with two different paths.
    Path1 :--> http://xxxx:50xxx/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2feu_core_role!2fcom.sap.uwl.home_core_ws!2fcom.sap.netweaver.bc.uwl.overview!2fcom.sap.netweaver.bc.uwl.uwl_page!2fcom.sap.netweaver.bc.uwl.uwl_iview
    For Path1 UWL iview is opening in a new Window with out Portal Frame Work page(i.e with out TLN and DTN).But if click on any task , the respective task information popup is opening with Portal Frame work page , TLN,DTN. The Task information is Showing in Content Area Part.
    Path2 : --> http://xxx:50xxx/irj/portal?NavigationTarget=pcd:portal_content/every_user/general/eu_core_role/com.sap.uwl.home_core_ws/com.sap.netweaver.bc.uwl.overview/com.sap.netweaver.bc.uwl.uwl_page/com.sap.netweaver.bc.uwl.uwl_iview
    For Path2 UWL is opening in a new Window With Portal Frame Work Page(With TLN ,DTN), but if i click on any task , the respective task infomation popup is opening in Simple Task infomation Window With out any Portal FrameWork Page(No DTN,TLN)
    I wanted to know what is the Difference between these two portal paths? Which Property is Controlling the Portal Frame work page for these Popup's.
    And also How to give the path in the Portal-app.xml [ property name ="xxx" , value = "pcd:portal_content/----
    While we retrive with profile.getProperty(" xxx ").
    Please Specify any prefixes we need to mention in the Portal-app.xml Value attribute ????
    My Requirement is to task Information Popup Not to open with Portal FrameWork Pages (i.e wtih Masthead, TLN, DTN)
    Thanks in Advance
    Ganesh

    Hi GLM ,
    Thanks for your response, but still i didn't get the answer for my query??
    If i open the UWL iview with path1 --> http://xxxxxx:50xxx/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2feu_core_role!2fcom.sap.uwl.home_core_ws!2fcom.sap.netweaver.bc.uwl.overview!2fcom.sap.netweaver.bc.uwl.uwl_page!2fcom.sap.netweaver.bc.uwl.uwl_iview
    In the UWL iview , if i click on any task , task information popup with portal framework page  is having the below path
    http://xxxx:50xxx/webdynpro/dispatcher/sap.com/ess~lea/LeaveRequestApprover;jsessionid=(J2EE18708900)ID0119451551DB00027146301853284939End?sap-ext-sid=c4SpjkIxw3oBtgYJAM21A--DLq8JAHogHUEDoyoN1_KA--&sap-wd-cltwndid=WID1252057673082&sap-wd-tstamp=1252057673240&sap-locale=en&sap-accessibility=&sap-rtl=&sap-ep-version=7.00.200902051510&sap-cssurl=http%3A%2F%2Fxxxxl%3A50100%2Firj%2Fportalapps%2Fcom.sap.portal.design.urdesigndata%2Fthemes%2Fportal%2FBekaertBranding%2Fur%2Fur_ie6.css%3F7.0.18.0.2&sap-cssversion=7.0.18.1.0&sap-tray-type=PLAIN&sap-tray-padding=X&wi_id=000008952152
    If i open the UWL iview with path2 ---> http://xxxx:50xxx/irj/portal? NavigationTarget=pcd:portal_content/every_user/general/eu_core_role/com.sap.uwl.home_core_ws/com.sap.netweaver.bc.uwl.overview/com.sap.netweaver.bc.uwl.uwl_page/com.sap.netweaver.bc.uwl.uwl_iview
    UWL Iview is Opening in Portal Framework page window, if  click on any task , task information popup(without framework page)
    is having the below path.
    http://xxx:50xxx/webdynpro/dispatcher/sap.com/ess~lea/LeaveRequestApprover;jsessionid=(J2EE18708900)ID0863376650DB00007048691018306318End
    If u clearly  observe both the paths, its different.
    Please Suggest me how both pcd paths are giving different views. I need to display my task information popup window with out any portal framework page.
    Thanks in Advance
    Ganesh

  • WDA: Check if PCD path or system alias exists?

    Hello Portal Experts,
    How can I check if the PCD path or the system alias exists?
    I like to check the PCD in my Web Dynpro for ABAP application, to prevent calling the portal navigation in case the system alias does not exist.
    Thank you very much in advance.
    Kind regards
    Axel

    Hi Axel,
    System Alias is must when you create Webdynpro ABAP iview .
    Please have a look  at below link, it may help you ,
    http://help.sap.com/saphelp_nw70/helpdata/en/e9/9bc93f92908032e10000000a11405a/content.htm.
    http://help.sap.com/saphelp_nw04/helpdata/en/fb/93ed3d72fe4b5ae10000000a11405a/content.htm.
    Regards,
    Krishna chaitanya.

  • PCD Paths

    Hello--
    I am wanting to know how to find the PCD in Portal Content Studio for Iviews placed on a page.
    As an example:
    The portal landing page has a number of iViews on it, how can I find out the PCD Path for each of the iviews in order to check their individual parameters? I tried right-clicking, but the information is mystic is trying to decifer the PCD Path, does Firefox help in this situation?
    Thanks,
    John

    If you have the details option enabled in the top right corner of the iView's tray, that will give you a clue.

  • Get current PCD path from user context

    Hi expert,
    Anyone has an idea how to get the pcd path of WDJ ? from user context ?
    Thanks for your quick reponse.
    Kr,
    Ben.J.

    Hi Ben,
    I am not quite sure what your use case is here.
    However, have a look at this link:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b4/adbf40b87e0366e10000000a1550b0/frameset.htm
    If it is for navigational purposes, you can use the WDPortalNavigationService.
    Have a look at http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2f72d990-0201-0010-85b0-8d626287dd4d
    - SM

  • Type on a path, object flipped?

    I flipped an object horizontally. Now, I need to apply type on a path to the object, but when I do so the type also appears flipped, even though the type was applied AFTER I flipped the object. How can I get the type to read correctly?

    Good Lord!
    I didn't notice that!
    What's even more frustrating is if you draw another object, group the two, choose clear transformations, the transformations are cleared, but the type is still backward.

  • Illustrator CS6: newly created paths/objects appearing at the bottom of layer

    Hey all,
    Just installed the new CS6. I'm experimenting with Illustrator. I feel a little dumb asking this, but ALL of my newly drawn paths, brush strokes, objects etc. keep automatically shifting to the bottom of the layer instead of like usual, appearing at the top. Is there a way to turn this off? Revert back to normal?
    Thanks!

    Most probably you're in "draw behind" mode.

  • PCD Business Objects Permissions for Authenticated users

    Hi All,
    I am working on SRM7.0 Business package installed on Portal NW7.01.
    I wanted to understand Which permissions should i provide to "Business Objects" PCD Folder for Authenticated users.
    Should it be Administrator "None" and End User "ON"
    Or Should it be Administrator "Read" and End User "ON"
    Regards,
    Ashish Shah

    Hi Sandeep,
    I was wondering what is the need of assigning permissions to "Everyone" Group and "Authenticated Users"
    2. Group: Everyone(built in group)
    Administrator:Read
    Enduser:checked
    3. Group:: Authenticated Users(built in group)
    Administrator:Read
    Enduser:checked.
    If i am not using Anonymous users , should i only assign this permission?
    Group:: Authenticated Users(built in group)
    Administrator:Read
    Enduser:checked.
    Regards,
    Ashish Shah

  • Finding duplicate path(object) without selecting

    Hi all,
    Is it possible to find the duplicate pathitem in the document without selecting those pathitems.It is possible to find the duplicate path items by selecting all the objects in the ducument,but i m not getting any clue to find the same without selecting.
    If it is possible then please give some suggestion on how to achive this ?
    Thanks,
    Sanat

    i might've misunderstood your question first time ... probably you`re looking to check if 2 objects are duplicates without creating the duplicate programatically. if so this might give you an inside look. test it by creating a shape, selecting it, copying it and pasting it in place ... you can play with the ignoreProperties string to make the comparison more general:
    var doc = app.activeDocument;
    var sel = app.activeDocument.selection;
    var ignoreProperties = "|name||width||height|";
    function AreDuplicates(o1, o2) {
        for(prop in sel[0]) {
            try {
                if(sel[0][prop] != sel[1][prop] && ignoreProperties.indexOf("|" + prop + "|") > -1) return false;
             } catch(er) {}
             finally { continue; }
        return true;
    if(AreDuplicates(sel[0], sel[1])) alert("Wheeee, they are sooooooooo duplicated!");
    else alert("Damn and i really hoped that ... never mind!");
    hope it helps;
    cheers;

  • PCD path from from portal 7.0 to 7.4

    HI,
    I need to migrate pcd content(pages/iviews etc) from sap portal 7.0 to sap portal 7.4
    Pls suggest the way to be taken forward
    Thanks
    Mano

    Hi,
    Notice that if these are your custom components, you may have to user the par to war migration tool ,in order to convert those to 7.3/7.4 format:
    http://help.sap.com/saphelp_nw73/helpdata/en/5d/43050b08ff42a796b2e466f4210ee0/content.htm
    Best Regards,
    Tal

  • Define prefix for objects from PCD

    Where and how to define a prefix which can be added in the beginning of a name  of iview, roles, etc.

    Hello Galina,
    By default, the portal allows administrators to create PCD objects u2013 such as iViews, pages, worksets and systems u2013 and enter any string for the objectu2019s ID prefix (namespace). By activating and configuring the naming conventions feature, you can set naming conventions for object ID prefixes.
    You can require that ID prefixes be based on the administrator who is creating or changing the object, or on the PCD path of the object.
    The naming conventions feature is controlled by the NamingConventionsSrv , which is contained in the com.sap.portal.namingconventions application
    The feature controls ID prefixes when an administrator creates an object or changes the objectu2019s ID. It does not check prefixes for the following:
    ■      Imported content
    ■      Copied content
    ■      Content from content mirroring
    ■      Content created via code
    Please read through these links to grasp more information
    [PCD ID Prefixes|http://help.sap.com/saphelp_nw70/helpdata/en/b0/2beb7a371c4649b2ceec901248ef31/frameset.htm]
    [Namespaces Naming Conventions|http://help.sap.com/saphelp_nw70/helpdata/en/43/6d9b6eaccc7101e10000000a1553f7/frameset.htm]
    Hope this helps,
    Regards,
    Shailesh

  • How to properly create path art object, please help

    Hello there,
    I have a vector of AIRealPoint , each point is actual X, Y coordinate of the stroke. I need to create path art object out of this vector.
    I'm  somehow confused how to correctly construct segments array form the given AIRealPoints, my goal is to have single path object where count of segments is equal to count of AIrealPoints first and last points are anchors. SDK documenation is not really helping here...
    Please, take a look at the code snippet, it seems I'm doing something wrong with in and out params of segment , in any case I fail to create simple path object ....
    ASErr CretaeVectorPathTest2(vector<AIRealPoint>& stroke)
    AIArtHandle artHandle;
    ASErr result = kNoErr;
    try {
      AIRealPoint start;
      long lngStrokeLength = stroke.size()-1;
      AIArtHandle lineHandle = NULL;
      AIErr error = sAIArt->NewArt( kPathArt, kPlaceAboveAll, NULL, &lineHandle );
      if ( error ) throw( error );
      error = sAIPath->SetPathSegmentCount( lineHandle, lngStrokeLength );
      if ( error ) throw( error );
      AIPathSegment *segment = new AIPathSegment[lngStrokeLength];
      // This is a first point of the path
      segment[0].p.h = stroke[0].h;
      segment[0].p.v = stroke[0].v;
      segment[0].in = segment[0].out = segment[0].p;
      segment[0].corner = true;
      for(inti=1 ;i< lngStrokeLength-1;i++)
       segment[i].p.h = stroke[i].h ;
       segment[i].p.v = stroke[i].h ;
       // NOT GOOD!!!
       segment[i].in.h  = stroke[i-1].h ;
       segment[i].in.v  = stroke[i-1].v ;
       segment[i].out.h  = stroke[i+1].h;
       segment[i].out.v  = stroke[i+1].v;
       segment[i].corner = false;
    // NOT GOOD!!!
      // This is a last point of the path
      segment[lngStrokeLength].p.h = stroke[lngStrokeLength].h;
      segment[lngStrokeLength].p.v = stroke[lngStrokeLength].v;
      segment[lngStrokeLength].in = segment[lngStrokeLength].out = segment[lngStrokeLength].p;
      segment[lngStrokeLength].corner = true;
      error = sAIPath->SetPathSegments( lineHandle, 0, lngStrokeLength, segment );
      if ( error ) throw( error );
      error = sAIPath->SetPathClosed( lineHandle, false );
      if ( error ) throw( error );
    // apply color width etc.
      AIPathStyle style;
      error = sAIPathStyle->GetPathStyle( lineHandle, &style );
      if ( error ) throw( error );
      style.strokePaint = true;
      style.stroke.color.kind = kFourColor;
      style.stroke.color.c.f.cyan = 0;
      style.stroke.color.c.f.magenta = 0;
      style.stroke.color.c.f.yellow = 0;
      style.stroke.color.c.f.black = 100;
      style.stroke.width = 0.75;
      style.stroke.dash.length = 0;
      delete[] segment;
      error = sAIPathStyle->SetPathStyle( lineHandle, &style );
      if ( error ) throw( error );
    catch (ai::Error& ex) {
      result = ex;
    return result;
    Thanks,
    David

    As for beziers, Illustrator uses cubic beziers which are fairly straight forward (thank goodness!). Here's a lift from Wikipedia's Bezier entry:
    This image is pretty good at demonstrating how AI's bezier segments work. In the animation, the moving point has two lines sticking off it, ending with two points. If P3 was an AISegment, the left-hand blue point would be in and the right-hand point would be out. If we were to translate the state of the animation in its last frame into AI code, you'd basically have something like this:
    AISegment segment1, segment2;
    segment1.p = p0;
    segment1.in = p0;
    segment1.out = p1;
    segment2.in = p2;
    segment2.p = p3;
    segment.out = p3;
    Note that this would imply any line that continues beyond either end point isn't a smooth beizer curve (i.e. the curve is limited to between these points). That effectively makes them corner points (I think). Also, the line formed by linking in & p or out & p is the tangent to the curve at p, which I think you can make out from from the animation.
    Another way to get a feel for this is to use the pen tool to draw a line with a few segments. If you then pick the sub-select tool (white selection arrow, not black selection arrow) and select individual points on the curve, you'll see when you do that two 'anchors' jut out from each point. Those are the in & out for that point on the curve.
    Its all a little confusing because technically, a bezier segment between p & q would be p, p.out, q.in & q. (four vertices). To avoid repeating information, and keep it simple for non-beziers, AI's segments are still the vertices. So if you wanted to make the nth segment a beizer, you'd need n & n+1 from AI's path, and you'd modify two-thirds of each AISegment (p, out from n & in, p from n+1).
    I hope that helps, but if you have any further questions, feel free to ask! If you need to do anything fancy with beziers, there are some helpful utilites in AIRealBezier.h.

  • How Can I Create a new Role in an PCD address?

    Hello EveryBody,
    I need to develop a new class that it can manage SAP Portal roles. I got how to recover all the roles of a user or how to recover all the roles in a PCD path. Now I have the problem when I try to create a new role in a PCD path.
    The code that I have to do that it is this:
    try {
    *     IRoleFactory iRoleF = UMFactory.getRoleFactory();*
    *     IRole nuevorol=iRoleF.newRole(pcdPath+nameRol);*
    *     nuevorol.setDisplayName(nameRol);*
    *     nuevorol.setDescription(descripcionRol);*
    *     nuevorol.commit();*
    *     return true;*
    catch (Exception e)
    *     return false;*
    This code it works and it makes a new Role but I donu2019t know how to create this role in a PCD path. Could you help me with this?
    This it is a urgent task that I have to develop, please I need help. Thanks in advance.

    Hi,
         Now I understood your question. As of now, I think there is no api which creates workset and roles in pcd. API are available for iView, page, system and layout only.
    For creation of iView, page etc, check this blog.
    PCD II: Creating Portal Objects
    For role and workset creation, there is another tool used. Check these blogs.
    SP15: XML Content and Actions
    Mass Creation of Portal Content - Generic Creator
    If you want to use this tool functionality in code, then check this blog.
    Using the XML upload content and actions dynamically
    If you are on NW7.1, then check this article.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40c72897-c7e6-2a10-e98a-af81b89084f4
    Hope these will help. Good luck.
    Regards,
    Harini S

Maybe you are looking for