Get pictogram of PCD roles/workset/iviews from INavigationNode object

Hi,
I am trying to develop a sitemap wherein I would like to display the pictogram of the object. The information I have is just the INavigationNode object (from which the UR/short URL/Launch URL can be retrieved)
        String pictogramURLstr,pictogramLink;
     NavigationNodes rootNodes = getrootnodes();
     for(Iterator it = rootNodes.iterator(); it.hasNext();)
          INavigationNode rootNode = (INavigationNode)it.next();
          String title =  rootNode.getTitle(request.getLocale());
          Tree tree = new Tree(title, "");
          tree.setRootNodeIsVisible(true);
          GridLayoutCell cell = new GridLayoutCell(rootNode.getName());
                pictogramURLstr="<img src=\""+pictogramLink+"\" style=\"BORDER:NONE; VALIGN:MIDDLE; PADDING-LEFT:3px;\"></img>";
          String text = pictogramURLstr+ "<a href=\"" + "/irj/portal?NavigationTarget=" + rootNode.getName() + "\" target=\"_blank\"; style=\"FONT-WEIGHT: normal; FONT-SIZE: 1.25em; CURSOR: hand; COLOR: #FFF; WHITE-SPACE: nowrap; TEXT-ALIGN: center; TEXT-DECORATION:none; \" >"  +title + "</a>";
                TreeNode root = new TreeNode(rootNode.getName(), text);

Hi Mahesh,
I already tried that, but I need the image set in the pictogram property of the role/workset/iView and not the image corresponding to the object type. The ultimate aim would be to get the same result as in using Navigation tag library <nav:navNodePictogram>
But due to some constraint, I cannot use Navigation tag libraries and want to have the same effect using the INavigationNode object.

Similar Messages

  • To get the Roles, Worksets, iviews assigned to portal user using webdynpro

    Hi..
    I need to display the roles, worksets, pages and iviews that are assigned to a particular portal user using WebDynpro.
    I tried to search in SDN and found a few blogs on this... but all are for DynPages. I could not find any inputs on how to achieve this in Webdynpro.
    I am listing down the blogs for your reference :
    1) /people/prakash.singh4/blog/2005/07/28/browse-roles-folders-pages-iviews-assigned-to-a-user-ep6-sp9-and-higher
    2) /people/prakash.singh4/blog/2005/09/06/create-a-sitemap-for-your-portal
    Please provide me your suggestions on how to display the roles, worksets, pages and iviews that are assigned to a particular portal user using WebDynpro.
    Thanks and Regards,
    Sayan Ghosh

    Please use following code to get all roles assigned to user:
         IWDClientUser wdUser = WDClientUser.forceLoggedInClientUser();
         IUser user = wdUser.getSAPUser();
         String strRoleID = "", strRoleDesc = "";
         IRoleFactory iRoleFactory;
         iRoleFactory = UMFactory.getRoleFactory();
         // Get All the Roles of the User
         Iterator iteratorRoles = user.getRoles(true);//prtRequest.getUser().getRoles(true);
         // Loop through all the Roles
         while(iteratorRoles.hasNext())
              strRoleID = iteratorRoles.next().toString();
              try
                   strRoleDesc = iRoleFactory.getRole(strRoleID).getDescription();
                   wdComponentAPI.getMessageManager().reportSuccess("Role: "+strRoleDesc);
              catch(Exception e)
                   wdComponentAPI.getMessageManager().reportException("Exception e: "+e, false);

  • Getting column names for a particular Table from Connection object.

    Hi,
    Can any one suggests me a way to get column names from a particular table of a database from the java.sql.Connection object. ?
    Thanks in advance.

    Connection connection;
    DatabaseMetaData metadata = connection.getMetaData();
      String[] names = {"TABLE"};
      ResultSet tables = metadata.getTables(null,"%", "%", names);
      while (tables.next()) {
      String tableName = tables.getString("TABLE_NAME");
       ResultSet columns = metadata.getColumns(null, "%", tableName, "%");
    while (columns.next()) {
      String columnName = columns.getString("COLUMN_NAME");
        }

  • 'role' description text from AM SDK

    PROBLEM:
    how do you get the role description text field from the AM SDK? this should be possible using an AMUser or AMRole object. 'roles' and 'policies' have a description field that we can use to tie specific data with that condition. i was advised to try and use a statement like the following
    role.getAttribute("iplanet-am-role-description");
    -- or --
    role.getAttribute("description");
    RESULT:
    both return empty strings or sets (refer to code below). i know that the data is there, it shows up in the amconsole for roles and policies. also, using the admin console for the directory server, the description information is displayed.
    i've also run cmd line ldapsearches against the directory server, looking for 'description' and 'iplanet-am-role-description'; these return empty, no error code. it's advertised as an attribute so i believe i should be able to find it. as previously stated using the admin console java app, those attributes associated with the 'role' object at the dc=mycompany,dc=com level are displayed, but not from a command line ldap search. it should also be noted that the performance of looking at a user object, w/ the admin console tool, is very slow. which may point in the direction that the admin console is also gathering the users, role, policy information from other objects w/in ldap. for example looking a user's definition, it displays amrole and amroledn, which are not directly stored attributes w/in the user's object.
    SYSTEM:
    -Sun JES 2004Q2
    -SunOS 5.9 Generic_117171-09 sun4u sparc SUNW,Sun-Fire-V240

    Hi
    To view the GL line item in Country Chart Account, Run Report S_ALR_87012332. In selection field choose alternate account in outout control.
    System will give the Detail as per Country Chart of Account.
    Thanks
    GG

  • ODS activation error"Activation of data records from ODS object terminated"

    Hi All,
    While activating ODS request I am getting following error
    "Activation of data records from ODS object KFI02O50 terminated ".
    data load is suceesful for ODS but during activation of the request it is giving error.
    I tried to change the status to green manually & then activated the request but still same problem.
    Also I tried to delete request & loaded again from PSA & then activated the request but still same problem
    If anybody has some solution please let me know.
    Thanks in advance
    Regards
    Sonal

    Hi Sonal,
              Sometimes when there is erroeneous records that time while activating the Request request get fails.To check this go to manage tab of the ODS there under log u can see the log icon click on that and check y activation got failed..
    Assign points if its helpful
    Regards,
    vid.

  • 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

  • Fetching iviews not assigned to a page,workset or a role(orphaned iviews)

    Hi All,
    I need to fetch iviews,pages ,worksets ,roles that have not been assigned and are not used.The iview is not assigned to a page,workset ,role,similarly a page need not be assigned to a  page,workset,role and similarly for a workset and a role.
    Any Pointers??
    Thanks in Advance.
    Regards
    Radhika  Kuthiala

    Hi,
    i need to code regarding the same.Can anyone provide me some pointers in regards to available api's to do the same(fetching iviews not assigned to a page,workset or a role(orphaned iviews)).I am able to fetch total iviews in pcd through coding in web dynpro java.
    Regards
    Radhika

  • How to mass moving iviews from one folder hierachy to another within PCD?

    Hi,SDN fellows.
    I found that it is really not user-friendly to move iviews from one folder to another within PCD>
    I tried to use Multiple Property Replacement to move some iviews in one folder to different folder hierachy in PCD, but I don't really know how to do so.
    Do you mass moving iviews in PCD before? How do you able to do it more efficiently.
    Thanks for help.
    Kent

    Kyle, the PCD Inspector seems able to faster my process a lot.
    What if I want to mass edit some properties. (I thought Multiple Property Replacement would able to do some, but it couldn't)
    Said I need to change the Id of a set of iviews:
    my_iview_a
    my_iview_b
    my_iview_c
    my_iview_d
    to
    iview_a
    iview_b
    iview_c
    iview_d
    but the MPR doesn't able to use the asterisk (*) operation.
    Thanks.
    Kent
    Thanks.

  • Disable / Hide Portal PCD roles which we don't want to display in UME.

    Hi Friends,
    I have configured ESS/MSS setup in our Portal;
    Step 1)   
        a) We downloaded ESS/MSS business packages from SAP Market place
        b) Deployed into our Portal.
        c) I have checked in Portal Content Administration; ESS/MSS PCD objects i.e. Roles,Worksets,Pages and iViews were created inside the SAP Standard folder.
    Step 2) As per my client recommendations u2013
       a) We donu2019t want to use PCD objects directly from SAP Standard folder and we will keep those PCD objects as backup. So,
       b) We created Client folder ex: xxABC inside Portal Content.
       c) I copied ESS/MSS PCD folder from SAP Standard Folder and Pasted inside folder xxABC; and then we customized Roles and worksets based on our requirements.
    Step 3) Role assignment to Users
          When I search for ESS/MSS roles like u201CEmployee Self-Serviceu201D and u201CManage Self-Serviceu201D I am able to see each role twice u2013 one is from SAP Standard folder and another from client folder which I was copied.
    So,
    1) I donu2019t want to display ESS/MSS role which is inside of SAP Standard folder in UME(role search).
    2) I donu2019t want to delete the role from this folder.
    I got an Idea that is u2013 disable/hide Portal PCD roles which we don't want to display in UME while role search.
    Please advise me, Is there any feature to disable/hide PCD roles in SAP Portal?

    Hi,
    You can try to set '''plugins.hide_infobar_for_outdated_plugin''' to true in [http://kb.mozillazine.org/About:config about:config].
    [http://kb.mozillazine.org/About:config_entries about:config Entries]

  • Calling xRPM standard iView from custom WD ABAP iView

    Hi,
    We have an issue regarding - calling xRPM standard iView from WD ABAP Application.
    Here are the details.
    When xRPM 4.0 application is displayed by clicking the Portfolio Management role,
    the item dashboard gets displayed. On the leftside, tabs for Reviews, Reporting Cockpits, Colections etc.
    are displayed. Below these tabs, we have a custom tab that navigates to custom WD ABAP applicaiotn.
    On click of this custom tab, WD ABAP application gets launched in same window instead of Item dashboard iView.
    Everything works good till this point.
    The requirement is - an event on this custom WD ABAP applications should navigate to standard xRPM iView (like Item Create or Item overview iView)
    we tried Object based navigation & firing a Portal event. But no navigation takes place. It stays on the current page.
    Is there any Portal setting need to be done for navigation between custom WD ABAP application and standard xRPM iView?
    Your inputs on this will rellay be helpful.
    Thanks
    Bhushan

    Hi,
    We could resolve the issue to certain extent.
    We used the following.
    Interface  - if_wd_portal_integration
    Method - navigate_absolute
    and a PCD location of Item Creation page is passed as a parameter navigation_target.
    This opens standard xRPM Item Creation iView.
    Similarly we tried opening Item Overview iView by passing ITEM GUID in Business_Parameters parameter.
    This opens the Item Overview iView but does not refer to the Item GUID passed and throws following error.
    An exception with the type CX_SY_MOVE_CAST_ERROR occurred, but was neither handled locally, nor declared in a RAISING clause 
    CX_SY_NO_HANDLER CL_RPM_OBJ_MANAGER============CP CL_RPM_OBJ_MANAGER============CM01Z 1 
    CX_SY_NO_HANDLER CL_RPM_OBJ_MANAGER============CP CL_RPM_OBJ_MANAGER============CM01Z 46
    So I need to either pass the ITEM GUID parameter through  navigate_absolute method or somehow set ITEM GUID in xRPM context so that when Item Overview iView is displayed, the iView will refer the ITEM GUID.
    Thanks in advance.
    Bhushan.

  • Trying to opn SAP Transaction IView from Webdynpro

    Hi Friends,
    I need to open a SAP Trancation Iview from Webdynpro (on click of some button) and pass some values to the screen fields,
    I am using the code below(which I found in many threads):
    WDPortalNavigation.navigateAbsolute("ROLES://<Iview ID excluding pcd>",
    WDPortalNavigationMode.SHOW_INPLACE,
    (String)null,
    (String)null,
    WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
    (String)null,
    (String)null,
    (String)null);
    The problem is nothin happened on account of execution of this code,
    I mean not even a blank screen gets opened.
    I am not even getting any error/exception.
    Please advice what could be the possible cause.
    Regards
    Deepak
    Edited by: Deepak Gupta on Mar 17, 2008 12:15 PM

    I wrote the code like below:
    WDPortalNavigation.navigateAbsolute("ROLES://<IViewPath>", WDPortalNavigationMode.SHOW_EXTERNAL,
    (String)null,
    (String)null,
    WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
    (String)null,
    (String)null,
    "number=123456");
    In IView application property, I wrote:
    CRMT_SEARCH_LOC-CARD_NO=<Request.number>
    (L.H.S is the screen field name)
    then I got following exception at portal:
    An exception occurred while processing a request for :
    iView : pcd:portal_content/<Iview path>
    Component Name : com.sap.portal.appintegrator.sap.Transaction
    Exception in SAP Application Integrator occured: Unable to process template 'CRMT_SEARCH_LOC-CARD_NO=<Request.number>', because 'number' is an invalid terminal property of context 'Request.'..
    what went wrong????

  • Launch Adobe Flex iView from Specific URL

    I was wondering if there was a way to launch a BSP iView from a direct URL, rather than having to log in to the portal and navigate to the iView. For example, if I create an Adobe Flex application called SamplePortal, I want users to be able to click on and bookmark a link that takes them directly to the application, while still taking advantage of the NetWeaver user authentication.
    I see 2 options available:
                 1.  Create a Quick Link (http://<servername>:50000/irj/portal/SamplePortal) - I can;t seem to get this one to work            
                 2. Directly Access the iView (http://<servername>:50000/irj/servlet/prt/portal/prtroot/pcd!3?&NavigationTarget=SamplePortal) - I also can't seem to get this method to work
    Which is best?

    1. QuickLink option
    You can assign a value to the quick link property of an iView or a Page and then you can navigate to that quick link using a direct URL like:
    http://myServer:50000/irj/portal/myQuickLink
    However, the iview/page should be assigned to the user via a Role assignment for it to work.
    http://help.sap.com/saphelp_nw04s/helpdata/en/97/b0ef8b24a64ae884f0ab246e54cae5/content.htm
    2. Navigation Target
    The navigation target specifies the location of an iView or a page in the current user role. The target can be obtained from the portal catalog as a value that is concatenated by folder id s, roles or other objects.
    http://myportal.wdf.sap.com:8100/irj/index.htm ?
    NavigationTarget=ROLES%3A//portal_content/MyRole/MyRole/MyTest/MyIView
    You should be mentioning the PCD path in your Navigation Target.
    http://help.sap.com/saphelp_nw70/helpdata/en/18/3fb84033a8b533e10000000a155106/content.htm
    Thanks,
    Shanti

  • Unable to create iView from template

    Hi,
    I'm unable to create new iView from a template
    If I try to create a new iView I get no selection of iView templates.
    The step 1 of Template selection shows the message:
    "No templates to display. You are not assigned to any existing templates."
    I have the super_admin role but I cant see any tempates.
    I checked the template folder in PCD and found my role has access to it and to the templates objects.
    I have searched for an OSS but no luck.
    Does anybody know a solution for this problem.
    Were on NW2004s SP14
    Best Regards,
    Rasmus

    Hi,
    The reason for this is in-sufficient permissions to the user on the applications folder.You can resolve this by navigating to :
    System Administration -> Permissions -> Applications , right click on the folder and open permissions. Then assign the <b>content_admin_role</b> to this folder.
    The issue will be resolved.
    Regards,
    Senthil K.

  • Cannot create iView from PAR file

    I am trying to create an iView from PAR file. But when I select the option,
    "Portal component - create an iView from a portal component contained in a deployed portal archive (PAR) file"
    and click next, I get the following error.
    Error______________________________________
    Step 1:  Portal Archive Selection
    No templates to display. You are not assigned to any existing templates.
    I have portal_configurator and developer roles assignmed to myself. Which other role do I need? I cannot get admin role.
    Note: Other users with admin roles can create iViews.

    Hi
    What is your portal version details ?
    In EP 7.0 you do not have the option -- New From PAR.
    So to create IView from Par, you should select the option New --> IView and then there will be an option to select par file.
    Otherwise
    1.Check if your par file is deployed on server.
    2. Check the portalapp.xml, if you have configured your components properly.
    Cheers
    Chinmaya
    reward for helpful answers

  • Adding worksets/iview as links to an html file utilised in a KM Doc iview

    Hi,
    I have developed a home page using the KM Document iview, which utilzes an html page in path to document.
    Now, On this home page, I want to display the links of worksets.
    Example: On Clicking the link--> Leave Management(a workset), it should open the leave management and its sub part iviews as Leave Cancel, Leave Status etc.
    Is it possible to display them on the same screen when the user clicks them? If it is possible, how to go about it?
    I tried using
    http://<portalserver:port>/irj/index.html?NavigationTarget=ROLES://<pcd location>
    in the html file, but on clicking this link, instead of the workset, the whole portal page is loaded in a sub-window.
    I don't have the option of creating a custom overview page in the back end; that's why following this approach.
    Any inputs on this would be helpful?

    Thanks Prashant,
    Level 1 of the problem is solved.
    Now I want When I click on the workset iview link,
    It should open another workset iview in which the iviews are displayed as links.
    Page 1
      (Workset Iview1)Clickable                                                    Workset Iview2 Clickable
    When workset iview1 is clicked, it should go to a page
    Link 1(an iview) Link 2(iview2) Link 3(iview3) and so on
    how can I achieve this?

Maybe you are looking for

  • Slides won't load in my imbedded web gallery.

    I followed the directions for embedding a Slideshow created in Bridge CS4 into an existing website using David Powers' excellent tutorial (http://foundationphp.com/tutorials/gallery/embed2.php). Everything displays beautifully, including my existing

  • Creating Repository Services advice!

    Hi All I am currently looking into creating and developing Repository Services and I am have a little difficulty understanding basic code and structure. I have managed to alter examples which various people have helped me with but that is now not eno

  • Subform with table with expanding fields - please help!

    I am a new user of LiveCycle Designer ES and need help with a form.  I've made so many changes within the form that I have now lost track and don't know where to start to fix the following two issues: The form itself is one Master Page that needs to

  • Some TestStand sequences will not update from 3.5 to 4.0

    I am attempting to update TestStand projects from TS3.5 to TS4.0.  When I try to update files using the Sequence File Converter in TS4.0, I get the following message for one of the sequence files: Failed to update file:  Affirm IGBT-Simmer Board Test

  • Unable to use iMessage

    After install iOS8, I tried to use iMessage & FaceTime. IN both case, it asked me to connect to server with my Apple Id and password. In both case it said, unable to connect, verify your connection and retry, but I have access to internet and my appl