Tag: Apex

Pagination using standard set controller salesforce

Pagination using standard set controller salesforce

Pagination using standard set controller salesforce We can use Standard set controllers provided by salesforce to implement pagination in visualforce. It is very easy to implement pagination using standard set controller. We can easily navigate through pages, move directly to first, last page or to next or previous pages using standard set controller. We can …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/pagination-using-standard-set-controller-salesforce/

Avoid recursive trigger in salesforce

Avoid recursive trigger in salesforce using static variable Avoid recursive trigger in salesforce using static variable Recursion occurs when same code is executed again and again. It can lead to infinite loop and which can result to governor limit sometime. Sometime it can also result in unexpected output. It is very common to have recursion …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/avoid-recursive-trigger-salesforce/

get current record id salesforce

get current record id salesforce

get current record id salesforce apexpages.currentpage().getparameters().get(‘id’) can be used to get current record id or other url parameters in apex code. Many times we have requirement to get current record id or url parameters of visualforce page in apex code. Many times we require the current record id in controller. For example we are redirecting from one visualforce …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/get-current-record-id-salesforce/

custom label in apex code salesforce

custom label in apex code salesforce example We can use System.Label.labelName to access custom label in apex code. Custom labels are custom text values that can be accessed from Apex classes or Visualforce pages. The values can be translated into any language Salesforce supports. Custom labels enable developers to create multilingual applications by automatically presenting …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/custom-label-in-apex-code-salesforce/

Trigger on Attachment in Salesforce

Debeloper Console 2

Trigger on Attachment in Salesforce Many times I have seen question from others that how can we write trigger on attachment in salesforce. For the Attachment, ContentDocument and Note standard objects, we can’t create a trigger in the Salesforce user interface. For these objects, we can create a trigger using development tools, such as the …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/trigger-on-attachment-in-salesforce/

SOSL Example in Salesforce

SOSL-Example-in-Salesforce

SOSL Example in Salesforce SOSL – Salesforce Object Search Language SOSL is a search language in salesforce and the important feature is that Unlike SOQL, we can search in multiple objects at same time using SOSL. In SOQL, we can query only one object at a time but in SOSL, We can search for some …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/sosl-example-in-salesforce/

Fieldset apex code salesforce

FieldSet Apex Code Salesforce Example

Fieldset apex code salesforce Fieldset apex code salesforce A field set is a grouping of fields for same object. We can use dynamic bindings to display field sets on our Visualforce pages. Fieldset is very useful when we are working with managed package. If we are using standard controller, then using fieldset in visualforce is …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/fieldset-apex-code-salesforce/

Fieldset visualforce page salesforce

Create account field set

Fieldset visualforce page salesforce Fieldset visualforce page salesforce How to use fieldset in Salesforce Visualforce pages? Fieldset: A field set is a grouping of fields for same object. We can use dynamic bindings to display field sets on our Visualforce pages. Fieldset is very useful when we are working with managed package. Field sets can …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/fieldset-visualforce-page-salesforce/

Immediate attribute of commandbutton and commandlink in visualforce

Immediate attribute of commandbutton and commandlink in visualforce This is basically used when we don’t want our validation rules to be fired during any server request. It is a Boolean value that specifies whether the action associated with this component should happen immediately, without processing any validation rules associated with the fields on the page. …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/immediate-attribute-commandbutton-commandlink-visualforce/

Export to Excel with multiple worksheets in visualforce

Export to Excel with multiple worksheets in visualforce We need to use XML tags to get the excel with multiple worksheets. We can use visualforce tags also with XML tags. We can use Styles like color , size , height for formatting the cells of excel sheet. For XML spreadsheet reference, go to XML Spreadsheet …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/export-excel-multiple-worksheets-visualforce/