Skip to Content

An SAP Netweaver Portal role is a menu that, once given to a portal user directly or through group membership, allows the user to see a predefined set of iViews and/or pages.

Normally to change the options visible in the portal role a portal administrator needs to change the role and maybe change the entry points and/or make specific options invisible. This can be a change control issue and, to be honest, turning on and off entry points etc in the role editor is not much fun. OK, with CE 7.1 there is a slightly nicer role editor, but…

So, I have developed a portal component that can be given to an appropriate portal user which allows them to toggle the settings for an iView to set/unset the entry points and invisibility options for a set of iViews in a PCD folder. (Don’t get me started as to why the invisibility flag has the name it has! Yes, to make something visible you need to set the invisibility flag to false. SAP loves the double negative…)

The PCD folder is set as a property of the iView called ParentFolder. Here is how the component might look at runtime…


The Update button sets the flags as specified.


To report this post you need to login first.


You must be Logged on to comment or reply to a post.

  1. Former Member
    I am getting the errors for the MessageType as well as btnExecute.setOKButton(true); setOKButton is not listed and IFname.setEnabled(false); is also throwing errors
    Can you let me know how do I rectify this
          1. Former Member
            thanks IFname.setEnabled(false); is still throwing errors i have added the latest jar file and all the MessageTypes are also throwing errors and also btnExecute.setOKButton(true); is throwing errors…..
            1. Former Member Post author
              There are a few other libraries you need. For example, prtjndisupport.jar. I suggest you use one of the class locator plugins to make sure you have all the correct imports – if you pick another library, then it’s possible you;re not using the htmlb objects.
  2. Former Member

    this statement is throwing the particular error can to help me to resolve this

    folder = (Context) contentFolder.lookup(parentFolder.substring(15));

    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
    Caused by: java.lang.NullPointerException
         at com.amat.zTest$zTestDynPage.doProcessBeforeOutput(

    1. Former Member Post author
      Looks like the string I am doing the sunstring on is shorter than 15 characters long! So, maybe print out the string and see why it doesn’t start with portal_content/…
      1. Former Member
        when i am doing
        m_response.write(“Folder = ” + contentFolder.lookup(parentFolder.substring(15)) + “
        it throwing portal runtine error

        and when i m doing only
        m_response.write(“Folder = ” + contentFolder.lookup(parentFolder) + “

        nothing is getting displayed


Leave a Reply