- Magulan Duraipandian
- No Comments
Category: Salesforce
How to check whether my Batch Apex or Future Method or Scheduled Apex completed in Salesforce?
Go to Set up --> Jobs --> Apex Jobs to check whether my Batch Apex or Future Method or Scheduled Apex completed. Cheers!!!
Getting Null values from Custom Settings in Test class in Salesforce
Create records for Custom Setting to avoid null values from Custom Settings in Test class in Salesforce. Syntax: @isTest public class testClass { @TestSetup static void setupData() { SampleCustomSettings__c obj ....
Radar Chart using Visualforce and Apex in Salesforce
Sample Code: Visualforce page: <apex:page sidebar="false" Controller="Sample" showHeader="true" id="pg"> <apex:chart height="750" width="800" legend="true" data="{!data}"> <apex:legend position="left"/> <apex:axis type="Radial" position="radial"> <apex:chartLabel /> </apex:axis> <apex:radarSeries xField="memName" yField="tenthPercent" tips="true" opacity="0.4"/> <apex:radarSeries xField="memName" yField="twelthPercent" ....
How to disable and enable button in Visualforce page in Salesforce?
Sample Code: Visualforce page: <apex:page sidebar="false" Controller="Sample" showHeader="true" id="pg"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> <script> var $ = jQuery.noConflict(); function ....
Trigger to sum all the child record field and storing it in another object field in Salesforce
Consider the below Scenario Quote and Structure__c --> Master Detail relationship Quote and Bigmachine__c --> Lookup relationship Structure__c and Bigmachine__c --> Lookup relationship We have to calculate total scope on Big Machine object, which ....
Coding standards in Salesforce
Visualforce page Name: Example: InventoryStatusPage ------------------------------------------------------------------------------------------------------------ Controller Name: Example: InventoryStatusController ------------------------------------------------------------------------------------------------------------ Extension Name: Example: InventoryStatusExt ------------------------------------------------------------------------------------------------------------ Test Class Name: Example: InventoryStatusTest ------------------------------------------------------------------------------------------------------------ Batch Class Name: Example: InventoryStatusBatch ------------------------------------------------------------------------------------------------------------ Scheduler Class ....
Test Class for Standard Controller in Salesforce
Check the below code for writing test class for standard controller apex class. Sample Code: Account a = new Account( Name = 'Test' ); Class_Name obj = new Class_Name( new ....
CreatedBy and CreatedDate in SOQL
CreatedDate: Created Date Time of the record. CreatedById: Id of the user who created the record. Sample SOQL: SELECT Id, CreatedDate, CreatedById, CreatedBy.Name FROM Account LIMIT 5
CurrentStatus in user object in Salesforce
CurrentStatus is similar to posting your current status in Facebook. If we create a Post in Facebook, it will be available in your posts. Similarly whenever this current status is ....