Asynchronous Apex
Asynchronous Apex in Salesforce allows developers to execute operations in a separate thread, enabling tasks to run in the background without impacting the user experience. This approach is particularly beneficial for handling long-running processes, callouts to external systems, and operations
Javascript | Unable to get content of HTML while converting HTML page to PDF
Problem : Unable to get content of HTML while converting HTML page to PDF. Solution : You can use the javascript if you want to get content of HTML while converting it into PDF : <HTML> <head> <script type=”text/javascript”> function submitForPDF() {
HTML text box should only accept numbers and dot
You can use the following javascript code to check textbox value: <html> <head> <script language=”Javascript”> function isNumberKey(evt) { var re=new RegExp(/^[0-9]*.?[0-9]*$/); if(document.getElementById(“text”).value.match(re)) { alert(“match”); } else { alert(“no match”); return false; } } </script> </head> <body> <input id=”text” type=”text” value=”0″
Javascript Calendar Problem on Chrome and Safari browsers
While working in a project, we faced a problem with using a calendar on a webpage. It was working fine for Mozilla Firefox but not for Chrome and Safari. Initially we had this code: <input type=”text” name=”startdate” id=”startdate” class=”form-control datepicker”
Java | Maven | How to pack Maven dependencies while creating jar file
We were creating a Maven project having packaging type jar. We had main class from where we were starting project execution. It was working fine through Eclipse but when we created jar file by compiling with Maven, we were not
Salesforce | Fatal error: Uncaught SoapFault exception: [sf:REQUEST_LIMIT_EXCEEDED] REQUEST_LIMIT_EXCEEDED: TotalRequests Limit exceeded
Problem: “Fatal error: Uncaught SoapFault exception : [sf:REQUEST_LIMIT_EXCEEDED] REQUEST_LIMIT_EXCEEDED: TotalRequests Limit exceeded.” In our case, this exception was raised while upserting records in Salesforce using PHPSFDC toolkit. Solution: When our code exceeds API limit within Salesforce, it throws above exception. This
Eclipse | Generate client for RPC based web services
1. Select your project where you want to generate client code for your wsdl file: 2. Select File -> new -> other option from drop down menu as shown below: Select web service client option from the drop down and
Heroku | What to do when dyno worker crashes
Problem: What to do when your dyno worker crashes (Heroku)? Description: We were working on an application made on Heroku. Once our site was not opening and it was throwing “Application Error”. When we checked logs we saw following error
Salesforce | Passing value of the variables from Visualforce page to the controller
Problem : Accessing value of the variables on Visualforce page within the Controller. Solution: We can access the value of the variables in the Controller of the Visualforce page by declaring the variables in Controller as public and get, set
How to add slow blur effect using jquery and css
Suppose you have to blur this image: To show it like this and this blur effect should be gradual: This is one solution to achieve this: $(document).ready(function() { animationTime(); }); function slowblur(number) { $(‘#firstimage’).css({‘filter’:’blur(‘+number+’px)’,’-webkit-filter’: ‘blur(‘+number+’px)’,’-moz-filter’: ‘blur(‘+number+’px)’, ‘-o-filter’: ‘blur(‘+number+’px)’,’-ms-filter’: ‘blur(‘+number+’px)’}); }