If you are unable to create a new account, please email support@bspsoftware.com

 

Custom Portal Widget(portlet)- Passing Local Parameter instead of UseGlobalParam

Started by esar, 21 Oct 2013 12:59:35 PM

Previous topic - Next topic

esar

I have created a custom widget using SDK and integrated it with cognos portal. I have used the sample "IBM Cognos Extended Applications Portlet" to add the portlet to my portal page. I have a jsp page which renders in the portlet. I am passing a parameter to the portlet through portlet properties using  UseGlobalParam in applications.xml. This parameter is global for the portal page. I am trying to use the same portlet twice in the portal page with different parameters for each of them. But since the parameter is global, it is using the same parameter for both of them.

How to set parameters to be local to the individual portlet through application.xml.

I have the following added to application.xml in webapps/sample/cps

<Application Cps="true">
        <Title>NavigationNew</Title>
        <Alias>NavigationNew</Alias>
        <Component>NavigationNew</Component>
        <Description>Navigate through cognos folders.</Description>
        <Keywords>IBM Cognos Search HTML CPS</Keywords>
        <Type>Sample</Type>
        <SampleComplexity>Novice</SampleComplexity>
        <!-- Portal Integration Parameters -->
        <Param UseGlobalParam="jsp">http://localhost:9300/samples/cps4/navigation16.jsp</Param>
        <Param UseGlobalParam="nav_path">/content/folder[@name='aaa']/folder[@name='xxx']</Param>
        <Param UseGlobalParam="home_name">Home</Param>
        <Param UseGlobalParam="home_path">#</Param>
        <Param UseGlobalParam="portlet_name">Navigator</Param>
        <Param UseGlobalParam="frame_name">portlet_channel</Param>
    </Application>