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 »

Lookup Search for all fields in Salesforce

The Winter’14 release of Salesforce provides some new features and enhancements. One of them is the enhanced search on lookups. In the Summer’13 version of Salesforce, it was only possible to search something using the name field. The lookup search window in Summer’13 is as shown below – New Stuff:  Set the click event of button… Read More: Lookup Search for all fields in Salesforce »

Set the click event of button on Enter in Visualforce page

Sometime ago we had a client requirement wherein we had to perform a button click operation when the user presses the enter button on a visual force page. In a normal visualforce page, there is no specific way to define a button to be pressed while pressing the enter key. New Stuff:  SOQL Query on combination… Read More: Set the click event of button on Enter in Visualforce… »

Excel Export in Salesforce

In one of our last posts “PDF Export in Salesforce“, we described how to download data in PDF format in Salesforce. Now we will be describing how to download data in excel format as promised in our previous blog. On the same pattern as PDF; contentType=”application/vnd.ms-excel#Export.xls” is the tag used to download the salesforce page… Read More: Excel Export in Salesforce »