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
Salesforce | How to prevent double click on Apex button
How to avoid double click on Apex button in Salesforce (after click disable button and enable again once action is complete)? This is the code having the solution (explained below): <apex:actionStatus id=”saveStatus”> <apex:facet name=”stop”> <apex:commandButton value=”Go” action=”{!go}” status=”saveStatus” rerender=”saveParentBlock” />
How to send iCal attachment in the email
Suppose you are sending an email in PHP and want to send iCal attachment. In PHP this can be achieved as below: 1. Create iCal file content and put in a variable (like $iCal here): $iCal = “BEGIN:VCALENDAR\r\n VERSION:2.0\r\n METHOD:PUBLISH\r\n
Tomcat version 8 not visible in Eclipse
Solution: Follow below-mentioned steps and you will get Tomcat version 8 working in Eclipse: 1. Download the latest Eclipse from the official site, preferable version Mars. 2. Do eclipse installation as you did earlier or just extract it in /opt. 3. Now when
Totara | How to create new audience, add members to audience and create learning Paths
In Totara, we can group individual users as “Audience”. This can be done for the users who need to share same learning paths (Courses and Programs). This means we can create an audience and then add users as members to
Selenium | Uploading a file with WebElement and sendKeys
How to upload files on webpage with selenium webdriver tool? While uploading a file if it becomes difficult to handle the window dialog box to upload a file on a webpage we can use sendKeys method of WebElement. With sendkeys
Salesforce | Sort “wrapper class” objects alphabetically based on a String parameter
Suppose we have a Wrapper class with fName as a string instance variable and we want to sort a list of objects alphabetically based on value of this variable. 1. Implement Comparable interface : global class MyWrapperclass implements Comparable {
Salesforce | Please use TLS 1.1 or higher when connecting to Salesforce using https
Salesforce login via PHP Salesforce Toolkit API may throw this exception: Please use TLS 1.1 or higher when connecting to Salesforce using https The reason is Salesforce has provided customers with the Critical Update feature Require TLS 1.1 or higher
Microsoft SQL Server | MySQL LIMIT equivalent in Microsoft SQL Server
Suppose you want to retrieve values from row from 5 to 10 from a table in SQL server. Since LIMIT keyword does not work in it so we can use any of these 2 alternative methods: Solution 1 : SELECT
How to access Moodle files outside the Moodle?
We can access Moodle outside the Moodle (without login) by passing token in the URL. For example : http://localhost/Moodle_new/webservice/pluginfile.php/26/qtype_match/subquestion/17/5/6/PineApple.jpg?token=6yhg9331af9d9284abb36cyjh0c67114a If token is not be passed into the URL, then it redirects to Moodle’s login screen.