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
hramanihramani 

Vf page help

i have a vf page inside which I have created a button (using commandbutton).
my requirement is whenever i click on this button inside this vf,
i need a pop up window (a new window) to open, inside which i want the details
from the controller returns to be present under two different tabs and the tabs
should be custom tabs created by code

 

Urgent requirement. Pls help.

digamber.prasaddigamber.prasad

You can execute javascript on click of button on first page, this javascript will open a new VF page in new tab. You can use the same controller on new page and create custom tabs on new page.

 

Let me know if you want more information.

 

Happy to help you!

 

Regards,

Digamber Prasad

hramanihramani

Thanks for the response.

 

In additon, i need to pass a value from a field to the second page.

Can you pls post an example of your explanation. It will be really helpful.

 

Pls help

digamber.prasaddigamber.prasad

Hi,

 

Your command button may look something like below. I assume the variable you want to pass to next page is in variable 'recordId' in your controller. You can modify it and make it work as per your requirement.

 

<apex:commandButton value="New Onboarding Action" onclick="window.open('<URL of new page>?recorId={!recordId}')"/>

 

Happy to help you!

 

Regards,

Digamber Prasad