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

Similar Messages

  • Retrieving iViews ,Pages and Worksets from roles

    Hi All,
    I am using the code given here..
    Retreive a list of workets, iViews, pages from Roles
    but while getting pcdFactory its giving class cast exception.
    Could anyone tell me what might be the mistake?
    Regards,
    Karthick

    Hi Karthick,
    I think I answered on another post, but here it is again:
    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(Context.SECURITY_PRINCIPAL, request.getUser());
    env.put(IPcdContext.PCD_PERSONALIZATION_PRINCIPAL, request.getUser());
    InitialContext iCtx = null;
    String roleID = "pcd:portal_content/DanielContent/DanRole";
    try{
        iCtx = new InitialContext(env);
        IPcdContext attrSet = (IPcdContext) iCtx.lookup(roleID);
        response.write(attrSet.getAttributes("").get("com.sap.portal.pcd.gl.CreatedAt").get() +"--PP<BR>");
    Hope it helps.
    Daniel

  • Get iViews from Role

    Hi
    I want to find out on which page a specific iViews is used, that means, where in the (user specific) navigation the iView will be displayed.
    When I traverse the navigation nodes, I get with getName() something like "ROLES://portal_content/folder/page". The problem is, I don't know which iViews lie on that page. How can I get them?
    When I find a role (IPortalRole object) in the PCD, I don't know what to do with it - is has no method I can use to get access to its content. Is there any way to do so?
    Thank you!
    Tobias

    Hi Tobias,
    In your posts there seems 2 things you want to do:
    (1) Find objects in a role.
    The objects are just subcontexts within the role context, so you can do something like this:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, Context.PCD_INITIAL_CONTEXT_FACTORY);
    env.put(Context.SECURITY_PRINCIPAL, request.getUser());
    env.put(Constants.REQUESTED_ASPECT, IPcdAttribute.PERSISTENCY_ASPECT);
    InitialContext   iCtx = null;
    try {
    iCtx = new InitialContext(env);
    IPcdContext myPcdContext = (IPcdContext) iCtx.lookup("");
    javax.naming.NamingEnumeration myEnum = myPcdContext.search("portal_content/DanielContent/DanRole",null);
    This returns an enumeration of javax.naming.SearchResult objects, which are the worksets, pages and iViews in the role. You would have to continue to traverse the PCD tree -- that is, do a search of each of these objects to get all the pages and iViews inside these.
    (2) Find all objects based on a specific portal component. You could do a similar thing by searching but with attribute filters, something like this:
    javax.naming.directory.Attributes myAttrs = new javax.naming.directory.BasicAttributes();
    myAttrs.put("com.sap.portal.private.iview.PropertiesUrl","pcd:com.sap.portal.system/applications/HelloWorldProject/components/HelloWorld");
    myEnum = myPcdContext.search("portal_content",myAttrs);
    The first problem with this is that it only searches the current level. There are other standard JNDI search methods that allow you to specify that you want to search all subnodes, but I have not been able to get it to work for PCD.
    The second problem is that I cannot search on CodeLink (which is a PCM attribute) -- I can only search on PCD attributes. So I searched on com.sap.portal.private.iview.PropertiesUrl, but I am not sure this is reliable.
    Daniel

  • Calling page or iView from KM HTML

    Hi All
    I have an requriement where-in, the page (or iView) should be called from a HTML which is actually stored in KM.
    The page that is to be called, should be displayed in a new window and should be headerless without an portal instance attached to it i.e. no desktop.
    I have used the NavigationTarget concept in the HTML and it indeed works... but however, it also displays the desktop. Is there any way to call the page without the desktop being attached to it..?? The page should be same the same window as we see in preview state i.e. headerless and only the contents being displayed.
    Thanks
    Deepak

    Hi All
    Thanks for the reply.
    @Stefan - I tried the EPCM navigation,but somehow it didn't work. Will look into it again.
    @Praveen - I had tried that option before posting on the forum. It works but also displays the portal desktop.
    @Sitara - This is something new to me. Let me try this one n post the results on the forum.
    Currently, i have created a button in HTML and on the click of it, it calls a Javascript function which returns the iView without portal desktop attached to it.
    My requriement is to replace the button with a link and use href property. I tried calling the javascript function in the href property, but it didn't work.
    Let me try Sitara's suggestion now.
    Regards
    Deepak

  • Hide automatic created folder from role upload

    Hi,
    when I make a role upload to the portal, a top folder with the same name as the role is automatically created. Is it possible to disable this feature or hide the folder afterwards?
    I have created my own folder structure in the portal, which defines the first two levels of navigation, and then made a delta link from this structure to the uploaded role. The content of the uploaded role is automatically put in a folder on third level instead of directly under the second level folder. This way the user has to click first on the role and then on the folder to get to the content. This is not very user friendly.
    Hope someone can help.
    Regards Morten

    Have you tried changing the 'Entry Point'  property within the uploaded roles ?
    When you do a role upload, you have the chance to automatically create the roles as worksets (rather than portal roles).  Have you tried doing this?  I think you get fewer levels (from memory)
    Also,  is your composite (backend) role design already in place and finished?  It is worth trying to consider the portal when doing the backend composite role design in order to prevent issues like this.
    Award points if this helps

  • To hide page options

    My requirement is to hide page options for users and to enable the same for Administrator.
    I referred method one from this site.
    http://mustafamyalcin.blogspot.com/2010/04/hide-page-options-button-from-non-admin.html
    This option worked only for one day and the next day again we were able to see the page options for users.
    Please help.

    Hi,
    I did not try this method myself. If you pull the blogpost through Google Translate (http://translate.google.nl/translate?js=y&prev=_t&hl=nl&ie=UTF-8&layout=1&eotf=1&u=http://mustafamyalcin.blogspot.com/2010/04/hide-page-options-button-from-non-admin.html&sl=tr&tl=en) it looks like it's easy to follow.
    Otherwise, you'd better ask Mustafa on his site.
    Good Luck,
    Daan Bakboord
    http://obibb.wordpress.com

  • How to transport roles, pages and iViews in the PCD from DEV to QA

    Hi
    Please would someone telll me how I can transport/move roles, pages and iViews we have created in our own area of the Portal Content Directory from our Development to our QA portal environment.
    Kind Regards
    Claire

    Hi,
    Please check help.sap.com.
    http://help.sap.com/saphelp_nw70/helpdata/en/c5/56599164d0c04cb566ba0e2d7ed55c/frameset.htm
    Your Basis/NetWeaver consultants can help you.
    Regards,
    Masa

  • Retreive a list of workets,folders,iViews,pages from Roles

    Hi all,
    I have been working on retreiving the workset,folders,iview,pages from a role.
    i am refering to the code given in the forum thread
    Retreive a list of workets, iViews, pages from Roles
    but i am facing some issue.
    if the role has workset in it,its not able to read the iviews or pages from it.
    its retreiving null.
    please may i get some solution or some working code regarding this.
    Regards,
    Savitha

    Hi all,
    I have been working on retreiving the workset,folders,iview,pages from a role.
    i am refering to the code given in the forum thread
    Retreive a list of workets, iViews, pages from Roles
    but i am facing some issue.
    if the role has workset in it,its not able to read the iviews or pages from it.
    its retreiving null.
    please may i get some solution or some working code regarding this.
    Regards,
    Savitha

  • How to hide an iView from a User w

    Hello Experts.
    Is there any way to hide an iView from some group of people?
    Fox example, we have a role (Role A) containing a page containing the iView (Role->Page->iView) and we want to hide this iView for users that don't have some another role or group. Is it possible to hide this iView even for users who have Role A?
    Best regards,
    Timur Semenchuk.

    Hello Timur,
    that sounds... complicated. This is probably one of those cases, where a nice drawing or screenshot would help a lot to understand.
    Is this homepage already there? Do I understand that correct, that it will contain links in the detailed navigation, that are iviews and those link to documents (in the KM for example) that have infos like pictures etc in them?
    And you just want to show those iviews on this start page, if the user has the roles, that are needed to show the content that is displayed AFTER you click on a link in the document in the iview on the start page?
    If I understood correctly, why don't you put those start iviews (let's call them like this for now) into the roles, that they should display? This way, only a user that can use the content after the jump can see the start point.
    So every iview in the start page is part of one of the roles, that the user has. Or can an iview have content, that leads to different displays, depending on which link/banner he click in the iview content?
    Like I said, I wouldn't do this via the PCD permissions. It's not very practical and later on hard to maintain.
    Regards,
    Steffi.

  • Opening another iview from an iview in the same page ....

    Hello ....
    I need to open another iview from an existing one in the same page without overwriting the other existing iviews on the page. I am using EPCM.doNavigate() as given below
    EPCM.doNavigate('ROLES://portal_content/com.hersheys.Hershey_Content/com.hersheys.Human_Resources/com.hersheys.hr.sap_mss_iviews/EmployeeExit?SCENARIO_PARAMS=PERNR='+person,0);
    The iview does open in the same page, however i lose the other iviews on the top and bottom of the page ....
    Any pointers??
    Thanks,
    Devina

    Hi Devina,
    Try using IUrlGeneratorService to generate the URL to the required iView, instead of EPCM.doNavigate().
    doNavigate sometimes refreshes the whole page while loading the required iView.
    cheers
    Kiran

  • How to send/set parameter from BSP page to iview

    Dear Expert,
    Can advise me how to send or set parameter from BSP page to iview ?
    http://xxx.xxx.com/irj/portal?navigationtarget=roles://pcd:portal_content/FLD.ObjetLibrary/FLD.Iviews/FLD.CRM/ET/bsppage.htm?lv_param=xxx
    I want to view my bsp page in portal but with parameter value.
    I can open my bsp page without parameter value like link below :
    http://xxx.xxx.com/irj/portal?navigationtarget=roles://pcd:portal_content/FLD.ObjetLibrary/FLD.Iviews/FLD.CRM/ET/
    Thnx & Regards,
    Pieter

    Hi,
    your BSP page get's integrated via an iFrame. So, simply speaking, it's not possible to pass an parameter back.
    But what you can try is to use the Portal DataBag component. In the BSP page, store the information you want to pass in the browser. The iView/Portal than has to check if there is a new parameter / value stored.
    SAP Help: http://help.sap.com/saphelp_nw70/helpdata/en/68/322a9261c54e51b7965f86aac3dae2/frameset.htm
    br,
    Tobias

  • Portal dynamic iView from Web Dynpro ABAP?

    I wish to use a "Dynamic iView" from a Web Dynpro ABAP application, but it appears the API is only available in Web Dynpro Java.  Can this feature be used from Web Dynpro ABAP, or can this be accomplished in another way?
    Scenario: I have two iViews on a page, one Web Dynpro ABAP and another iView whose source I want to change dynamically based on something a user clicks in the Web Dynpro ABAP.
    Dynamic iView:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/a72c155df77038e10000000a422035/frameset.htm

    So you are suggesting the WDA fires an event to a new WDJ that we would need to create that would in turn use the Dynamic iView service mentioned in that help document?

  • Bex iview previews fine in content adm, displays wrong template from role

    Hi All,
    I have created a Bex iview which is delta linked onto a page.  The page previews fine from the content admin but when it is displayed from the role, it displays a standard generic template, not the report that i expect.
    Also, I have noticed that it will display fine when the iview is assigned directly to the role, rather than assigned to a page which in turn is assigned to the role.  I need the report to display correctly from a page, as I need it to be displayed along with another iview.
    It should be noted that it displays fine in our DEV and QAS systems.
    Anyone any ideas as to what may be the cause of this?
    Thanks in advance,
    Liz.
    Edited by: Liz O'Leary on Feb 15, 2012 5:43 PM

    Hi,
    Please check the below link it might help
    http://help.sap.com/saphelp_nw70/helpdata/EN/33/39fa40ee14f26fe10000000a1550b0/content.htm
    Are you using correct template while creating the iView.
    Regards,
    Srinivas
    Edited by: Nivas209 on Feb 16, 2012 8:35 AM

  • IView errors in Dynamic Navigation area of Page

    Hi,
    I am developing a Java DynPage iView on EP6.0 SP10 (NW04). The iView functions similarly to the SAP MSS Team Viewer, except that it calls an R/3 Search Help to get a list of employees to display. The iview uses the EPCF framework to generate client side events that are picked up by other iviews on the same page.
    Now, the symptoms of my problem: I created a portal page and added the iview to the dynamic navigation area of the page. I have two other iviews that react to the event that is raised by my iview. They are in the general content area of the page. The page is added to my test role as normal. I test the functionality by logging into the portal and accessing the page via the normal portal navigation. Everything works fine, until I leave my session idle for around five (5) minutes. At that point, if I do anything in the iview, I get a runtime error:
    "An exception occurred while processing a request for :
      iView : N/A
      Component Name : N/A
    iView not found"
    If I refresh the page, everything's ok again. This only happens when the iview is in the dynamic navigation area of the page. If it is added to the general content area of the page, the problem does not occur.
    It looks like some kind of timeout value, but I'm not sure where to start looking. My HTTP session is still alive at this point, as is my SSO cookie. And, as I said before, I don't get the error if the iview is not in the dynamic navigation area of the page.
    Can anyone give me advice on what to do to fix this problem?
    Thanks and regards
    Morne Muller

    Hi Frank,
    Unfortunately I did not get an answer. I am currently busy with other things so this problem is not receiving a lot of attention right now. If I do get an answer, I will post it here. If you are able to fix it on your side, I would appreciate it if you could let me know too.
    Regards
    Morne

  • Remove iview from page

    Hi,
    One of our users has managed to remove the iview from the Portal Theme page in the Personalize popup window. How could he get the iview back?
    I believe I know how I could prevent this from happening in the future, but the solution is too late in this particular case.
    We are on NW04 SP11.
    Thanks in advance,
    Gabor

    Hi Gabor,
    here is how you can achieve ...
    1. ...that the users who have removed the "Portal Theme"-iView from the Personalize Page get it back
    AND
    2. ...they can not remove it again during personalization:
    Go to: Content Administration > Portal Content > Portal Content > Portal Users > Standard Portal Users > Standard User Role > Portal Personalization > Portal Theme and click on "Edit".
    For the "Portal Theme"-iView Select the Box for "Fixed"!
    Hope this solves your problem,
    Robert

Maybe you are looking for

  • Field in BAPI_GOODSMVT_CREATE

    Hi , I am using BAPI_GOODSMVT_CREATE for creating GRN , In transcation MIGO , at line item level there is a field which does not exist in GOODSMVT_ITEM table.Please suggest me how to populate the field which does not exist in BAPI_GOODSMVT_CREATE. Re

  • MacPro 4,1 with ATI 5870 Kernel Panics with logs

    Hello, My system is a MacPro 4,1 with 8GB of RAM, 4 Internal HDs, and an Apple ATI 5870 video card that I upgraded to from the stock Nvidia GT120 a little over a year ago.  I'm running 10.6.8 Snow Leopard. I've had very little problems with kernel pa

  • Mono sound only

    This is a really annoying problem: I only get mono sound with my headphone jack - the builtin laptop speakers are doing fine, though. I had this problem a few days ago, I asked for help in another forum but right after that (after a reboot) it worked

  • Sort by Artist / Date in List View

    I like to have my albums sorted by Artist and then chronologically by Release Date This is fine in Grid View as i can sort by Artist and within that by Date. But when i switch to List View it sorts by Artist and within that by Album Title. There does

  • UnsatisfiedLInkError: No muxer in java.library.path

    I get the following error when I try to start weblogic java.lang.UnsatisfiedLinkError: no muxer in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1249) at java.lang.Runtime.loadLibrary0(Runtime.java:470) at java.lang.System.l