Another Salesforce blog!!!

Salesforce, Apex

PageReference redirecting from the Visualforce page

if you are passing any parameters then you would use this:

<apex:outputLink value="{!URLFOR($Page.NewEmployee, null, [empId=e.Id])}">
    e.Name
</apex:outputLink>

If you want to add more parameters, you can add them in between the square brackets.

[empId=e.Id,id=URLENCODE($CurrentPage.Parameters.Id)]

Leave a Reply

Your email address will not be published. Required fields are marked *