Obtain pages / iViews of role

Hello. I want to obtain pages and iViews where the current logged in user is associated with. I know that the user is asscociated with roles, roles are related with pages and pages contain iViews. How can I get the pages / Iviews for the current logged in user? Can I use an API for that?
Thaks you very much!

Hi Gerald,
I thaught that you know how obtain the roles a user is associated with, that's why I showed you the way how to get the starting point with such a role within the PCD.
> I have no idea how to crawl the PCD for pages
> and iView and what JNDI is
JNDI is a standard Java API, it's Java Naming and Directory Interface (a search in google would have answered the question).
> Maybe there are tutorials about that?
For JNDI for sure, take http://java.sun.com/products/jndi as a starting point, there you'll also find a tutorial.
For accessing the PCD there are no explicit tutorials for this is not really supported...
Hope it helps nevertheless
Detlev

Similar Messages

  • Hide Page or IView from Role dynamically

    Hi guru,
    I've a role with added some page.
    For wich users, I would like to hide the Entry point of page/iview at run-time.
    Is it possible?
    Thanks,
    Antonello

    Hi,
    Are you using Homepage Framework to maintain the role.
    If so, you can dynamically maintain the services to be shown/not.
    Please follow the below link......
    Create Dynamic XSS Homepages with Static Services Using a Simple Proxy Class
    I tried it and worked out as expected.
    Hope this helps.
    Cheers-
    Pramod

  • Assigning iViews to Roles without Pages

    I have created several "SAP Transaction" iViews that rely on HTML GUI and would like to add these to my Portal.  When I assign them to a page, and then add that page to a role, the iView height does not display automatically.  The iView is only about 80 pixels high. 
    I have also tried assigning the iView directly to the role, and in this case it displays correctly. 
    Is there any purpose to using "Portal Pages" if an iView is the only content being displayed for that Top Level or Second Level navigation choice?
    Are there any problems with assigning iViews directly to roles?
    Thanks for any answers you provide.
    Best regards,
    Bryan

    Bryan
    You are correct, this concept didn't exist in EP5. In EP6 a Page and an iView are basically the same object, which is why it doesn't matter which one you assign to a role. The other thing is that if you do use a page, then the pagebuilder tends to include a lot more resources into the output, which increases the size (and potentially time) of the page downloaded to the client. If you only have transactional iviews, then I would forget about the page. If you decided to try and use the pages, then the things that can cause this problem are: -
    1) Domain of the iView is different to the domain of the portal and when the portal tries to re-size the page it can't access the size of the content and therefore can't resize it
    2) I would check things like the maximum and minimum page size attributes on the page. They may have default values in an iView but not a page
    I hope this helps
    D

  • Open only page/iView in new window

    Hi,
    How can I publish a porta page (or iView) in a way that I can open the page/iView without the role menu? Or what kind of URL should I use to call the page (or iView).
    In other words I want to achieve the same functionality which I get when I test the page or iView with the preview button in the portal content directory.
    I assume that I still need to assign this page (or iView) to a role and then assign this role to the user (in order to get this working), but I don't want certain types of users to see the role menu. They just need to open the needed application from our Intranet.
    I thought I could achieve this by using "URL navigation" but it still shows the role context menu.
    Regards
    Pa

    Hi,
      You say you have already checked with NavigationTarget option? What kind of iVIew it is? Why not pick the url link from the preview page itself? That will not show role based menu. The url u picked can be added as link to ur intranet page. You have to decide on authentication though. If you want user to click the link and enter portal username and password to see the iView, then u can keep default settings. Else you can make the iView as anonymous iView by setting it in iView properties.
    Hope that helps.
    Regards,
    Harini S

  • Field "Location of Linked Object" missing after adding a page to a role

    I am using EP5 (5.06.01.00). After adding a page to a role, the properties of the page in the role no longer include the field "Location of Linked Object". The properties now only consist of two fields: "Name" and "Location". They used to contain a third field "Location of Linked Object", in fact, in older roles the page properties still contain this field. However, when I now add pages to a role or workset, this third property field "Location of Linked Object" is not there. - I am adding the page by clicking the "Add" button to move a page from the "View" area to the role in the "Edit" area. - I have been observing this symptom for several months, but I can not identify any configuration changes or upgrades which would have caused this behavior.
    All hints will be greatly appreciated.
    Thank you
    Message was edited by: Carsten Mund

    I am using EP5 (5.06.01.00). After adding a page to a role, the properties of the page in the role no longer include the field "Location of Linked Object". The properties now only consist of two fields: "Name" and "Location". They used to contain a third field "Location of Linked Object", in fact, in older roles the page properties still contain this field. However, when I now add pages to a role or workset, this third property field "Location of Linked Object" is not there. - I am adding the page by clicking the "Add" button to move a page from the "View" area to the role in the "Edit" area. - I have been observing this symptom for several months, but I can not identify any configuration changes or upgrades which would have caused this behavior.
    All hints will be greatly appreciated.
    Thank you
    Message was edited by: Carsten Mund

  • Can't get rid of vertical scroll bar for full page iviews

    Hello all,
    We 've got a number of areas of our portal where we are using iViews with a full page (e.g. web dynpro apps, collaboration directory).  However with all of these iViews, a vertical scroll bar appears on the right hand side. This bar has hardly any "play" in it (it doesn't move very far), and it doesn't reveal anything extra.
    The funny thing is, it only happens when our desktop (theme and framework) is applied.  Does anyone have any idea what might affect this?
    The iView tray height is set to full_page.  In some cases it sits within a page, others it is added directly to the workset.
    Using EP6SP14
    Thanks,
    Chris

    Hi Christopher,
    whenever a page is displayed in portal, a javascript resizes your inner page iView dynamically. The value used depends on the resolution of your browser (height) minus some pixel reserverd for your mast head, TLN and other page header iViews.
    If you use a theme or masthead iView that is higher than an original one, the javascript calculates an iView height that is too high. Maybe you should try decreasing the height of your portal header.
    At least, that's what I think. Maybe I'm wrong.
    HTH,
    Carsten

  • URGENT : Disable View Source in EP Pages/Iview

    Dear EP Specialists,
    Pls let me know how to disable view source code in EP pages/Iviews.
    We are at EP 6.0 SP12.
    Pls treat this urgent.
    Thanks a lot !
    Josh.

    Hi,
      I dont think that is possible.. on the lighter side i think the EP framework generates source which is tough to decode )
    refer:
    1. http://www.devwebpro.com/devwebpro-39-20030428Is-Someone-Stealing-Your-Source-Code.html
    2. http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_20661699.html
    Hope that helps.
    Regards,
    S.Divakar

  • Adding iview to role/folder  using wd

    I am working on requirement  to add  iview to Role/Folder using
    webDynpro.I have developed following code based on forums.
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
    env.put(Constants.REQUESTED_ASPECT, IPcdAttribute.PERSISTENCY_ASPECT);
    //env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
    env.put(Context.SECURITY_PRINCIPAL,
    WDClientUser.getCurrentUser().getSAPUser());
    env.put(IPcdContext.PCD_PERSONALIZATION_PRINCIPAL,
    WDClientUser.getCurrentUser().getSAPUser());
    InitialContext iCtx = new InitialContext(env);
    String iViewID =
    "pcd:portal_content/wb.bidash.bi_dashboard/java_sap_com_km_com_kmapp_KmApp";
    String iRoleID =
    "pcd:portal_content/wb.bidash.bi_dashboard/com.wb.testRole";
    try
    IRole myrole = (IRole)iCtx.lookup(iRoleID);
    IiView myIView =(IiView)iCtx.lookup(iViewID);
    // add iview to role
    // Here i need some code like  add iview to role
    //myrole.addMember(myIView);
    catch(NamingException e4)
         e4.printStackTrace();
    it is giving  following exceptions    java.lang.ClassCastException
    java.lang.ClassCastException
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:174)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:

    Hello ,
    im getting similar issue can u got any solution .../
    Regards ,
    subbu

  • Assigning WPC page to a role

    Hello,
    I have followed all the steps of this blog.
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6150
    I created a role and then a folder. I assigned the path for navigation connector of the wpc file, but still not able to see the page for that role.
    Is there any specific settings to be done for KM related to this?
    Thanks,
    Priya

    Hi Priya.
    Common beginner's mistakes are the forgotten prefix wpcnavigation://  and a wrong number of slashes in the property External Connector:
    wpcnavigation:///wpccontent/Sites/<MyWebSite>/Site Navigation/navigation.wpc
    If it is not your case, try recreate a role from a scratch. Sometimes it helps.
    Best regards,
    Aliaksandr Zhukau

  • How to add iview to role using webdynpro

    Hi every one, Can you please tell me how to add iview to role using webdynpro code.
    Thanks
    TK

    Hi,
    could you copy / past your code ?
    if you need help on webdynpro and your beginner, try to watch the video on internet of WebBProfessor. It's really good videos !
    regards
    Fred

  • "Error on page" while adding a transaction iview to Role

    Hi,
    I am getting javascript error "Error on page" when I am trying to add a transaction iview to a Role.
    when i click on the error it shows
                     error : Expected ')'
    The error is coming only for few iviews while for others it if working fine.
    Does anyone know the reason for this error?
    Thanks,
    Kanchan

    /* Formatted on 2012/04/25 14:22 (Formatter Plus v4.8.8) */
    CREATE OR REPLACE TRIGGER issue_book_tri
      BEFORE INSERT
      ON issue_book
      FOR EACH ROW
    DECLARE
      CURSOR a
      IS
        SELECT join_date
          FROM member_book;
      p_join_date   DATE;
    BEGIN
      OPEN a;
      FETCH a
       INTO p_join_date;
      IF p_join_date > :NEW.issue_date
      THEN
        raise_application_error (-20322, 'You may Issue book only after joining');
      ELSIF 1 = 1 -- uuuuuu miss the condition here
      THEN
        :NEW.return_date := :NEW.issue_date + 15;
      END IF;
      CLOSE a;
    END;

  • Automate the assignment of iviews, pages, workset to role....

    Hello Gurus,
    We are using EP 7.0. Is there any tool available in EP 7.0 that will automate the assignment of different content objects, like assignments of iviews, pages and workset to role.
    We want to assign large no. of iviews, pages,worksets etc. to diffrenent roles. Is there anything available that will help us to automate the assignment, rather than manually assign the objects to the role as it will be a huge task and time consuming.
    Any help will be highly appreciated.
    Regards
    Deb
    [Points guranteed for helpful answers]

    Hi Deb,
    as far as I know there is no standard tool for mass assignment of content objects to portal roles. But you can easily develop your own solution. The folloowing sections of the SAP Library should be helpful:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/44/43863b2e641193e10000000a155369/frameset.htm">How PCD Lookups are Performed</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/44/726396278212d0e10000000a422035/frameset.htm">Working with Semantic Objects</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/44/703fd42043053ce10000000a1553f6/frameset.htm">Delta Links</a>
    Best regards,
    Martin

  • How can I make my Pages & iViews visible for a new role

    Hi dear all
    I am making my first-step of Portal. I have generated some Pages and iViews for a new role, and assigned it to a new user, but when I logon with this user, I cannot see anything i have made, I don't know why.
    And I have generated a desktop, a display rule and a framework which is a delta link of the default one.
    Is it couse the problem of permissions? Please help, Thanks ~>_<~

    Hi guys,
    I have finished the reinstall of my SAP Netweaver server, and I have worked with your steps, it works now, so coool.
    Thank you sooo-much!

  • Disaply the all the roles for page, iview and workset

    Hi Guys,
                  I have a strange requirement. i need to display all the users that have access to a particular iview, page and workset. can anyone help me out with this.
    -Thanks

    Hi,
      Any iview or page or workset should be part of role. SO if user has access to a particular role, he will have access to the portal objects inside that role as well. So the way to go is you can get all the roles, check iViews, pages etc. If iViews or pages match, then save the role to arraylist. Now check the users who are assigned to these roles in arraylist. That may work.
    Regards,
    Harini S
    Don't forget to reward if you find the answer helpful

  • Dinamicaly assign Worksets, Pages, iViews to a Role using the APIs ?

    Hi,
    Has someone built a Role via Webdynpro coding?
    Hope someone has done it and could help.
    Thanx in advanced!
    Kind Regards,
    Gerardo J

    Hi Shanti,
    thanx alot for the help! actually folowing documentation in the help.sap.com I found this:
    "PCD Roles: These are semantic objects that represent collections of content that can be assigned to a user.
    There is no public API for accessing these roles."
    here I paste the link
    http://help.sap.com/saphelp_nw70/helpdata/en/44/43863b2e641193e10000000a155369/frameset.htm
    I Guess then is no way to modify the Role via API to achieve this, or this is only on 7.0 and now it is posible on 7.1?
    Thanx in Advanced!
    Kind Regards,
    Gerardo J
    Edited by: Gerardo Jiménez on Jan 31, 2011 11:58 AM

Maybe you are looking for

  • Is there a way to get Indices of the HD face mesh tracked

    Hello there, I' m programming in c++ and opengl. I want to get the vertices and indices for the diffrent faces tracked, build my mesh with my own framework and draw it with opengl. I can get the different vertices in color space (or not) I can't get

  • Dynamic File Name and Directory File Sender Adapter

    Hello gurus, I have a question: Is there any way to make the File Name, and Directory Dynamic of a File Sender Communication Channel ? For example, taking it as a parameter from a Web Service Request.. (I mean, the only way with this would be a ccBPM

  • While creating Purchase Requisition we need to send a mail for approvers

    Hi All, While creating Purchase requisition we need to send a mail to approvers. Dowe  need to create Function module ? if You know the steps can you please give me the steps. Thanks In advance Sriman.

  • Prime Infrastructure and WLC 2504 N+1 config syncronization

    I've setup 2 cisco 2504 WLC's in a N+1 configuration, before we purchased Prime Infrastructure.  Now I'm trying to syncronize the configurations between the two devices in PI.  I've setup a configuration group, and it seems using templates will keep

  • BOM component should not appear in order confirmation

    Hi In a scenario, I want one of the BOM component should not appear in process order confirmation. I have not assigned this component to any phase and in material master MRP2 view the backflush tick is not activated. Still the component is appearing