Category: salesforce

Salesforce, Apex, Visualforce, SOQL related posts

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/

actionfunction visualforce salesforce

actionfunction visualforce salesforce action function in salesforce apex:actionFunction visualforce salesforce actionfunction visualforce salesforce. apex:actionFunction component provides support for invoking controller action methods directly from JavaScript code using an AJAX request. It is different from actionsupport which only provides support for invoking controller action methods from other Visualforce components, actionfunction defines a new JavaScript function which can then be …

Continue reading

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

Salesforce record Id 15 digit 18 digit conversion

Salesforce record Id 15 digit to 18 digit Salesforce record Id uniquely identifies each record in salesforcce. Salesforce record Id can either be 15 digit or 18 digit. 15 digit salesforce record  id is case sensitive and 18 digit salesforce record id is case insensitive. Every record in salesforce is identified by unique record Id …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/salesforce-id-15-digit-18-digit-conversion/

actionstatus visualforce salesforce

actionStatus visualforce salesforce actionStatus visualforce component displays the status of an AJAX update request. An AJAX request can either be in progress or complete. Depending upon the AJAX request status (whether AJAX request is in progress or complete), this component will display different message to user. In many scenarios AJAX request takes some time. So …

Continue reading

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

Actionsupport in visualforce in salesforce

actionsupport in visualforce actionSupport component adds AJAX support to other components in visualforce. It allows components to be refreshed asynchronously by calling the controller’s method when any event occurs (like click on button). It allows us to do partial page refresh asynchronously without refreshing  full page. In the example below, initially count value is set to …

Continue reading

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

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/

Show error message in Visualforce Page

Show error message in Visualforce Page using ApexPages.addmessage apex error message Sometime we need to show error message on Visualforce page. We can implement this requirement by creating new instance of ApexPages.message and then adding message to Apexpages using ApexPages.addmessage. Then displaying these messages in visualforce page. We can add 5 different types of message …

Continue reading

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

Export to Excel using VisualForce Page

Export to Excel using VisualForce Page By simply modifying the ContentType attribute on the <apex:page> tag, your Visualforce page code will automatically generate an Excel document. For example, the following code will create a table of Contact data for a given Account. After # in the contentType attribute value, it is the name of the excel file that will …

Continue reading

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

Dynamic SOQL query select all fields in Salesforce

Dynamic SOQL query Salesforce soql select all Dynamic SOQL query Salesforce for soql select all. SOQL is Salesforce Object Query Language for querying data in the Force.com platform. It is very much similar to SQL. But in SOQL, we can not query all fields from object. This statement is not allowed in SOQL: select * …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/dynamic-soql-query-fetch-fields-object-salesforce/

Wrapper Class in Apex Salesforce

Wrapper class in Apex Salesforce Wrapper Class in Apex Salesforce : A wrapper or container class is a class, a data structure, or an abstract data type which contains different objects or collection of objects as its members. A wrapper class is a custom object defined by programmer wherein he defines the wrapper class properties. …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/wrapper-class-in-apex/