Changing user email without asking for confirmation from the user

Whenever the administrator of a salesforce organization changes the email address of any user, the user receives a notification in the previous email address informing them of the change. In addition to this, an email is sent to the new address asking for confirmation. It is only after the user accepts the change by clicking… Read More: Changing user email without asking for confirmation from the user »

Using same component multiple times in a Visualforce page

While working on a project, we created a component and had to use this component in the same page multiple times to show grid data for different objects. Here the JavaScript functions and variables were getting conflicted and the component was not referring to the correct JavaScript function and variables. To resolve this conflicting issue,… Read More: Using same component multiple times in a Visualforce page »

Set controller variable/properties from JavaScript

Sometimes we need to pass values to apex code or assign the controller properties in JavaScript. Here is the trick that we can use to set a value to an apex variable/properties from JavaScript code using <apex:inputTextarea>  tag in Visualforce Page. <apex:inputTextarea id=”setDataStringValue” value=”{!setDataStringValue}” styleClass=”exampleDataToSetVariable” style=”display:none;”/> We will set the value ‘data’ in JavaScript function… Read More: Set controller variable/properties from JavaScript »

Number of Retries for JSRemote Call

In our previous blog post “Transaction aborted: timeout error in Salesforce“, we had written that changing the timeout parameter in JSRemote call from Visualforce page can help avoid the timeout error issue. But occasionally even after increasing the timeout parameter, the timeout error appears for a couple of times due to the fact that sometimes… Read More: Number of Retries for JSRemote Call »

Transaction aborted: timeout error in Salesforce

In one of our projects in force.com, we have been using the JS remote action calls many a time for custom reporting purpose. While testing, sometimes we face an issue and the error message displayed is “Unable to connect to the server (transaction aborted: timeout)”. This error occurs randomly and only sometimes. New Stuff:  View Records… Read More: Transaction aborted: timeout error in Salesforce »