Salesforce Certified Application Architect

Sunday 29 December 2013

URLFOR() Directing to a Visualforce page:

In addition to invoking actions, you can also use the URLFOR() function for simple navigation
to redirect a user to any web page, including any Visualforce page, by specifying the target as the
name of your page prepended with apex/ to create the partial URL.

For example, to redirect to our Visualforce page named CustomAccountPage we would use the
following syntax:

<apex:outputLink value=”{!URLFOR(‘apex/CustomAccountPage’)}” >
 Goto My Custom Account Page
</apex:outputLink>

In addition, you can also construct links referencing any Frontdoor URL pattern to directly launch
an insert, edit or view action on any sObject by simple URL navigation.

<apex:outputLink value=”{!URLFOR(‘/’+Contact.accountId)}” >
 View My Parent Account
</apex:outputLink> 

No comments:

Post a Comment

Salesforce Certified Application Architect & Certified Data Architecture and Management Designer Exam

How to pass Salesforce Certified Data Architecture and Management Designer Exam This exam was 1st architect exam for me. Its not that muc...