Running Unit Testing in Salesforce
To Run Unit test: To run unit testing, go to Setup Menu --> App Setup --> Develop --> Apex Test Execution and then select the Test Class and click ‘Run’ ....
To Run Unit test: To run unit testing, go to Setup Menu --> App Setup --> Develop --> Apex Test Execution and then select the Test Class and click ‘Run’ ....
Unit testing: http://wiki.developerforce.com/page/An_Introduction_to_Apex_Code_Test_Methods http://wiki.developerforce.com/page/How_to_Write_Good_Unit_Tests http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_testing_unit_tests.htm Testing Controllers and extensions: http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_error_handling.htm Running Unit Test Methods: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_testing_unit_tests_running.htm Cheers!!!
window.onload or action attribute in apex:page can be used as OnLoad function in Salesforce Visualforce page. Method 1(Calling Javascript): <script type = "text/javascript"> window.onload=function() { alert("Hi"); }; </script> Method 2(Calling ....
To run or execute Batch Apex instantly, go to Developer Console. In the Apex Code section, use the following code:mergeNumbers M = new mergeNumbers();Database.executeBatch(M); where mergeNumbers is a Batch Apex ....
global class scheduledMerge implements Schedulable { global void execute(SchedulableContext SC) { mergeNumbers M = new mergeNumbers();// Batch Apex class to be called } } Cheers!!!
Sample Trigger: trigger memberInviteNotify on Member__c ( after insert,after update ) { List < Messaging.SingleEmailMessage > listMessages = new List < Messaging.SingleEmailMessage >(); for ( Member__c member:trigger.New ) ....
Lookup filter is used to filter the values to be shown in lookup relation. Check the below link for more details http://infallibletechie.blogspot.in/2013/04/lookup-filter-in-salesforce.html Cheers!!!
Trigger.new : Returns a list of the new versions of the sObject records. Note that this sObject list is only available in insert and update triggers, and the records can ....
Salesforce Setup Audit trail is used to store the configuration or metadata changes in the org.
List<Account> acct = new List<Account>(); String sql = 'SELECT Name,Phone,External_ID__c,Type,Industry,AccountNumber,Description,FAX,SLA__c,Rating,(SELECT Name,StageName,CloseDate,Probability FROM Opportunities) FROM Account WHERE ID=:localId'; acct = Database.Query(sql); for(Account ac:acct) { List<Opportunity> opptys = ....