+ Start a Discussion
SFDCExplorerSFDCExplorer 

Page with in the vf page

I have embeded custom vf page into one of the object lay out. Let's say I am trying to perform Edit action, Then edit page is being open as sub page with in the actual page. Instead, How can we open that page as a new page(Unlike subpage with in the actual page).

Thanks In Advance.
Best Answer chosen by SFDCExplorer
Veenesh VikramVeenesh Vikram
If you are using a CommandLink for calling the edit action, try setting the "target" attribute to "_blank". This may let you open the page in a new Tab.
Also you can try usng javaScript's window.open() method, here also set the target attribute to "_blank" and you will be good to go.
If using commandbutton, try something like this:
https://developer.salesforce.com/forums/?id=906F000000096XFIAY

All Answers

Veenesh VikramVeenesh Vikram
If you are using a CommandLink for calling the edit action, try setting the "target" attribute to "_blank". This may let you open the page in a new Tab.
Also you can try usng javaScript's window.open() method, here also set the target attribute to "_blank" and you will be good to go.
If using commandbutton, try something like this:
https://developer.salesforce.com/forums/?id=906F000000096XFIAY
This was selected as the best answer
SFDCExplorerSFDCExplorer
@Veenesh Vikram

Hi Veenesh,
Thank you for your update. I am trying to perform those actions in service cloud console. There it's not working fine. If i don't use console then everything is fine. Do you have any suggestions on how to resolve it in service cloud console.
Veenesh VikramVeenesh Vikram
Have you tried using Console's "openPrimaryTab()"  and "openSubtab()"?
Refer:
https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_openprimarytab.htm

I guess this is what you need.

Veenesh