• Rajesh Unadkat
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

I have created a tab called 'My Tab' that's linked to visualforce page /apex/MyVFPage. I can probably get url to this page using PageReference and partial page logic for /apex/MyVFPage. However, is there any better way to the url, may be using tab name?

 

 

I am trying to load a tab programatically, so far I use the url that I see when I click on the tab, but I want to make sure this is the correct way:

 

 

public PageReference GoToTab() { PageReference pageRef = new PageReference('/servlet/servlet.Integration?lid=01r800000003iF1&ic=1'); return pageRef; }

 

Will that also work in a deployed managed application at a customer's site?

 

Thanks