Wednesday, May 23, 2012

Product And Campaign Tab Not Visible For Partner Portal Tab In apex Salesforce

Hi ,
Very first think you need to check that Customize Portal Tab for partner portal if any of the tab is not available in the left or right drop down then its mean those tabs are not available for portal user .

We have alternate option to do the same that we can create a simple VF page with the standard controller of that particular object and redirected page url to the url comes when clicking on product or Campaign Tab generally .

Below is example for product tab :

VF Page :

<apex:page standardController="Product2" extensions="ProductTabCls" action="{!ProductRrl}">


</apex:page>

Class Code :

public class ProductTabCls {

    public ProductTabCls(ApexPages.StandardController controller) {

    }   

    public pagereference ProductRrl(){

        pagereference page = new pagereference('/01t/o');

        page.setRedirect(true);

        return page;

    }   

}


Now Create a Visualforce Tab by selecting the newly created VF page !

2 comments: