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
we-mpwe-mp 

Using URLFOR to direct to a new VF page

Hello, 

 

I have a Standard Controller Extension class with a property called paramId (it has getter and setter methods) that holds the ID to a newly created Result object.

 

 I would like to use URLFOR and display a VF page that shows details for the Param object. For e.g

 

{!URLFOR($Page.PLResultDisplay,null,[id={!paramId }])}

 

Is this possible?  If yes, then how does the above URLFOR change?  Because the above gives me an error.

 

Thank you.

 

 

prageethprageeth

Hello;

What do you really want to do?

The function "{!URLFOR(resource, path)}" is to access a resource in StaticResources.

Are you going to include a VF page in your current page or trying to call another page at a commandLink action?

"<apex:include>" tag can be used to include another VF page in your curent page.

Could you please explain your problem further. 

 

 

mtbclimbermtbclimber

You can't nest expressions:

 

{!URLFOR($Page.PLResultDisplay,null,[id={!paramId }])}

 

Try this:

 

{!URLFOR($Page.PLResultDisplay,null,[id=paramId])}