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
SurjenduSurjendu 

Can I open a webtab from another tab dynamically?

I have the following usecase:

I have a visualForce tab. On click of a command-link I want to open up a url(which is dynamic) in another webtab.?

I cannot create a webtab because it asks for a static URL like ww.google.com
But I create the URL dynamically based upon some logic in my code. I would like to open up the url in another tab. I dont care whether the other
tab is a web tab or visualforce tab.

Any insights would be highly appreciated.

Regads
Surjendu
Best Answer chosen by Admin (Salesforce Developers) 
mtbclimbermtbclimber
The standard salesforce tabs functionality (custom/web/visualforce included) do not support the case you describe.

One possible solution I can imagine would be a target visualforce tab that includes an iframe with the src attribute bound to a request parameter that you set in the controller that handles the commandLink action on the originating page/tab.