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
Jitender  PaddaJitender Padda 

$Action Class usage in Developer Guide

Hi Salesforce Support and Forum Members,

I opened this link (https://developer.salesforce.com/docs/atlas.en-us.198.0.pages.meta/pages/pages_variables_global_action_valid_values.htm) and found that there are lots of interesting features which we can implement using the $Action global variable in VF pages but unfortunately there is no documentation on its usage and how we can leverage them in Visualforce.Since the actions specified in the above link seem quite useful , I would like to get some examples on how to use them or if there is any detailed documentation (with examples).

PLEASE BE ADVISED THAT I AM NOT LOOKING FOR SIMPLE ACTIONS SUCH AS EDIT or NEW BUT COMPLEX ONES SUCH AS GOOGLEMAPS,YAHOOWEATHER.

If you have implemented any of those then I would really appreciate your guidance.

Thanks,
Jitender
Amit Chaudhary 8Amit Chaudhary 8
Please check below post.
1) https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_variables_global_action.htm
2) https://help.salesforce.com/apex/HTViewHelpDoc?id=dev_understanding_global_variables.htm&language=en
3) http://www.tgerm.com/2010/10/visualforce-action-code-samples.html


The following markup adds a link to create a new account:
<apex:outputLink value="{!URLFOR($Action.Account.New)}">
    Create New Account
</apex:outputLink>

The following markup adds a link to download an attachment:
<apex:page standardController="Attachment">
    <apex:outputLink 
      value="{!URLFOR($Action.Attachment.Download,
                      attachment.id)}">
      Download Now!
    </apex:outputLink>
</apex:page>
Let us know if this will help you

Thanks
Amit Chaudhary




 
Jitender  PaddaJitender Padda
Thanks for your quick response Amit and also thanks to Abhinav who took the initiative to build up a place where we could contribute to this but there still isn't much known about the $Action's vast and I might add very useful use cases in his blog either.