function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ankushankush 

Direct Visual Force Page to Visual Force TAB

Can some one Guide me How to redirect a page to VisualForce Tab with name Appl_Cntcs

I am trying the below but it is not opening

PageReference pr = new PageReference('/Appl_Cntcs/o');
      pr.setRedirect(true);
      return pr;

If I use the Visual force page it is redirecting but I am unable to see the tab hence need some help to redirect and also see the TAB.
Rajkumar VenkatRajkumar Venkat
try to include the tabName value n pagereference put parameter option and check it. 
tabid='01rN000XXXOD' ; (this id you can find in tab section)
PageReference pr = new PageReference('/Appl_Cntcs/o');
PageReference.getParameters().put('tabName', tabid);
 pr.setRedirect(true);
      return pr;
ankushankush
Hi Raj,

          It did not work though it is redirecting to the page but the TAB name is not appearing.