Category Archives: visualforce

Salesforce: Impossible to invoke Lightning or Visualforce actions in Apex Code

When I saw QuickAction class and QuickAction.QuickActionRequest object I assumed that it supports Lightning and Visualforce actions, however, in fact, it doesn’t. I created two actions. Lightning Action on Account and called it LA and Visualforce action on Account and called it VA. When … Continue reading

Posted in Actions, lightning, salesforce, Uncategorized, visualforce | Tagged , , , , , , | Leave a comment

How to display button on VisualForce page only if user has Delete permission?

This may be useful for both usual Salesforce Developers and ISVs. There are several ways to achieve the functionality described in the header. I would mentioned only the simpliest one: Assume you have custom object CustomObject__c and you need some button … Continue reading

Posted in salesforce, Uncategorized, visualforce | Tagged , , , , , , , , | Leave a comment

Salesforce: Do not use status animation on both commandButton and actionFunction in VisualForce

Everyone who developed VisualForce page knows that actionFunction, which is called from page and performs controller method, takes some time to be processed on backend and usually we want to prevent users from any actions during controller action method being … Continue reading

Posted in Posts in English, salesforce, visualforce | Tagged , , , , , , , , | Leave a comment

Salesforce: make dependent field required for specific values of primary field

The code for page and its controller is quite trivial, adapted from Glyn’s answer in this topic: https://developer.salesforce.com/forums/ForumsMain?id=906F00000008y1ZIAQ Changed custom object to standard object; also for my case primary field should be text field instead of checkbox.    

Posted in Posts in English, salesforce, visualforce | Tagged , , , , , , , , | Leave a comment

Salesforce: Selection all of elements in the table

Sometimes we need to show list of SObjects on VisualForce page, and want to allow users to mass process these records, by allowing them to selects records which they want to delete or clone or make on them any other … Continue reading

Posted in controller, model, Posts in English, salesforce, selection, table, visualforce | Tagged , , , , , , , | Leave a comment

Salesforce: Trick to get both Id and Name of Lookup Record from VisualForce page without calling SOQL

I created custom SOQL page for viewing list of existing custom object records and adding new. This custom object has one LookUp field to Account. I need both Id and Name of related Account record to set as LookUp field … Continue reading

Posted in javascript, lookup, Posts in English, record, salesforce, visualforce | Tagged , , , , , | 1 Comment