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
PHP | Header function not working
Code : Function getredirect($subcontactid) { echo”contactid”.$subcontactid; header(“location:https://subscriptions.zoho.com/app#/customers/$subcontactid”); exit; } The header function in the above code does not work. But when we remove the echo from the code, it works properly. Code after removing echo : Function getredirect($subcontactid) { header(“location:https://subscriptions.zoho.com/app#/customers/$subcontactid”);
iOS | Inconsistent Status Bar in iOS Phonegap Application
Problem : Header goes under the status bar and menu button is not clickable in Phonegap/Cordova Application. Solution : In the iOS version 7.0, App View covers full screen including the status bar, and the view starts from top of
Salesforce | Change value of an object’s field on button click and reload page
We can change the value of an object’s field on button click by using javascript like this (and this will also reload the page): { !REQUIRESCRIPT(“/soap/ajax/29.0/connection.js”) } var rec = new sforce.SObject(“Contact”); rec.Id = “{!Contact.Id}”; rec.IsActive= ‘true’; var result =
Generate getter/setter for PHP Classes in Eclipse
Using PHPGen Eclipse plug-in one can automatically generate getter /setter methods for instance variables. Note: This Plugins is not available in Eclipse Marketplace. Steps For Installation: Start Eclipse and add “Help> Install New Software” from following URL: http://loge5.de/downloads/Eclipse/: Click Add,
Salesforce | How to get the User Informations like ORG_ID, User_ID etc in VisualForce code
To get the active user info or org info in Visualforce code one of the best programming practice is to get the values from the controller class of the Component. Here is sample controller class: public with sharing class GetUserInfo
Heroku | Checkout Git project into Eclipse from Heroku
1. Go to Heroku and copy the link of the specific apps that you want to take checkout of: 2. Open eclipse and start the git perspective, then click cloning icon: 3. Paste the URL link into the dialog box
Photoshop | Add audio to Gif animation in Photoshop
Step 1. Click “Window” > “Timeline” to show the image sequence of animation. Step 2. Go to timeline and click add audio. Step 3. Select the desired audio you want to add in your .gif file. Step 4. Select audio
jQuery | Click event does not work on dynamically created HTML elements
Solution: Suppose we have the following HTML and jQuery code: HTML: <div id=”container”> <button id=”1″ class=”createNewElement”>Button</button> </div> jQuery: $(‘.createNewElement’).click(function(e) { alert(“Element with id ” + $(this).attr(‘id’) + ” is clicked!”); // tells id of button clicked newElementId = parseInt($(‘div button’).last().attr(‘id’)) +
Maintaining record history in database
When you are building a web-based multi/single tenant system or a desktop system which has a database at its backend to maintain records, keeping the history of records proves to be very useful in the long run from information and