$Action is a global variable. A global merge field type to use when referencing standard Salesforce actions such as displaying the Accounts tab home page, creating new accounts, editing accounts, and deleting accounts.
Here I am sharing some visualforce code for the same.
<apex:page standardController="Account">
//Navigating to new record page of Account
<apex:outputLink value="{!URLFOR($Action.Account.New)}">
Creating New Account
</apex:outputLink>
//Navigating to Account list View
<apex:outputLink value="{!URLFOR($Action.Account.List, $ObjectType.Account)}">
Go to the Account List View
</apex:outputLink>
//Navigating to Account tab page
<apex:outputLink value="{!URLFOR($Action.Account.Tab, $ObjectType.Account)}">
Go to the Account tab
</apex:outputLink>
//Cloening Account Record
<apex:outputLink value="{!URLFOR($Action.Account.Clone, id)}">
Cloning record
</apex:outputLink>
//id means record id
//Here we have to give accountid in url.
//Editing Account Record
<apex:outputLink value="{!URLFOR($Action.Account.Edit, id)}">
Editing record
</apex:outputLink>
//Deleting Account Record
<apex:outputLink value="{!URLFOR($Action.Account.Delete, id)}">
Deleting Account Record
</apex:outputLink>
//submitting account record for approval
<apex:outputLink value="{!URLFOR($Action.Account.Submit for Approval, id)}">
Submitting Record for Approval
</apex:outputLink>
</apex:page>
Here I am sharing some visualforce code for the same.
<apex:page standardController="Account">
//Navigating to new record page of Account
<apex:outputLink value="{!URLFOR($Action.Account.New)}">
Creating New Account
</apex:outputLink>
//Navigating to Account list View
<apex:outputLink value="{!URLFOR($Action.Account.List, $ObjectType.Account)}">
Go to the Account List View
</apex:outputLink>
//Navigating to Account tab page
<apex:outputLink value="{!URLFOR($Action.Account.Tab, $ObjectType.Account)}">
Go to the Account tab
</apex:outputLink>
//Cloening Account Record
<apex:outputLink value="{!URLFOR($Action.Account.Clone, id)}">
Cloning record
</apex:outputLink>
//id means record id
//Here we have to give accountid in url.
//Editing Account Record
<apex:outputLink value="{!URLFOR($Action.Account.Edit, id)}">
Editing record
</apex:outputLink>
//Deleting Account Record
<apex:outputLink value="{!URLFOR($Action.Account.Delete, id)}">
Deleting Account Record
</apex:outputLink>
//submitting account record for approval
<apex:outputLink value="{!URLFOR($Action.Account.Submit for Approval, id)}">
Submitting Record for Approval
</apex:outputLink>
</apex:page>
No comments:
Post a Comment