Ankush Dureja

Author's posts

Visualforce page render as pdf example

Visualforce page render as pdf example We can render any page as pdf  by adding renderAs attribute to <apex:page> and specifying “pdf” as value. renderAs value is name of any supported content converter. Currently PDF is the only supported content converter. Setting renderAs attribute to “pdf” renders the page as a PDF. Rendering a Visualforce …

Continue reading

Permanent link to this article: https://www.sfdcpoint.com/salesforce/visualforce-page-render-pdf/

Salesforce record id hack first 3 digit

Account Tab

Salesforce record id hack first 3 digit This post is going to be interesting. As we all know that each record in salesforce is identified by record id which is unique for every organisation. Salesforce record id can be 15 digit case sensitive or 18 digit case insensitive. Last three digits of 18 digit record …

Continue reading

Permanent link to this article: https://www.sfdcpoint.com/salesforce/salesforce-record-id-hack-first-3-digits/

actionRegion visualforce salesforce

Without actionRegion Demo

actionRegion visualforce salesforce actionRegion provides an area of a Visualforce page that decides and separates which components should be processed by the force.com server when an AJAX request is generated. Only the components which are inside actionregion component are processed by server, so it increases visualforce page performance. Here components means, all visualforce tags like inputField, outputField, …

Continue reading

Permanent link to this article: https://www.sfdcpoint.com/salesforce/actionregion-visualforce-salesforce/

Difference between Export & Export All in Data Loader

IsDeleted True

Difference between Export & Export All in data loader is really interesting. I was asked this question in one of my job interview. There are two buttons available in dataloader ‘Export’ & ‘Export All’. Difference in both button functionality is very small. When we use ‘Export’ button for any object in salesforce, all records( excluding …

Continue reading

Permanent link to this article: https://www.sfdcpoint.com/salesforce/difference-export-export-data-loader/

actionPoller visualforce salesforce

actionPoller visualforce salesforce Actionpoller acts as a timer in visuaflorce page. It is used to send an AJAX request to the server depending on the timeinterval that we specify in interval attribute (time interval has to be specified or else it defaults to 60 seconds).Each request can result in a full or partial page update. <apex:actionPoller> has following important attributes: …

Continue reading

Permanent link to this article: https://www.sfdcpoint.com/salesforce/actionpoller-visualforce-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: https://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: https://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 15 digit to 18 digit. Salesforce record Id uniquely identifies each record in salesforcce. Salesforce record Id can either be 15 or 18 digit. 15 digit salesforce record  id is case sensitive and 18 digit salesforce record id is case insensitive. Every record in …

Continue reading

Permanent link to this article: https://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: https://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: https://www.sfdcpoint.com/salesforce/actionsupport-visualforce-salesforce/