Lookup button in Visualforce Page
Example 1: Example 2: Apex Class: public class con { public contact c { get; set; } public con() { c = new contact(); } public void search() { // c.accountid has the selected ID. }} VisualForce Page: …
Read MoreSalesforce.com Lightning and Lightning Web Component – Learn & Share
Example 1: Example 2: Apex Class: public class con { public contact c { get; set; } public con() { c = new contact(); } public void search() { // c.accountid has the selected ID. }} VisualForce Page: …
Read MoreApex Class: public class sampleExtension { ApexPages.standardController std = null; public sampleExtension(ApexPages.standardController sc) { std = sc; } public PageReference doCancel() { return std.cancel(); } } VisualForce Page: Note: this doesn’t necessarily take…
Read MoreDisplaying the check box in a data table or page block table is a general requirement in every project. with the help of wrapper class we can display the checkboxes in a data table. For the select all checkbox we…
Read MoreApex Class: public class checkcontact { public list con {get;set;} public boolean cc{get;set;} public checkcontact() { con=new list(); cc=true; con=[select name,email from contact]; } public void change() { if(cc==false) cc=true; else cc=true; } } VisualForce Page: Name {!conlist.name} Email…
Read MoreAPEX: public with sharing class clsDateFormat { Datetime myDateTime = system.now(); List dateFormats = new List { ‘dd.MM.yy HH:mm:ss’, ‘MMMMM dd, yyyy hh:mm:ss a’, ‘MMM-dd-yyyy hh:mm a’, ‘EEEEE dd MMMMM yyyy…
Read MoreLetter Date or Time Piece Examples G Era G = AD y Year yy = 09, yyyy = 2009 M Month MM = 08, MMM = Aug, MMMMM = August w Week in year w = 35 W Week in…
Read MoreSalesforce CRM provides two tools for data migration—the Import Wizard and the Apex Data Loader.The Import Wizard is designed for less-technical users and smaller, simple imports of up to 50,000 records. It takes you through the process step by step…
Read MoreData type mapping i.e, what data type of Salesforce maps to what data type of SQL Server or Oracle Data Type. SalesForce Data Type SQL Server Data Type ORACLE Data Type boolean bit varchar2(1) date smalldatetime date datetime Datetime date currency decimal(precision,scale)…
Read More