Apex 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; …
Visual Force
-
-
-
…
-
APEX: 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’, …
-
APEX Class: public List getCaseAttachmentList(){ if(caseId != null && caseId != ”) { string attachCaseQry = ‘Select Id, Name, Body, CreatedDate From Attachment where ParentId = \”+caseId+ ‘\”; caseAttachmentList …
-
if you set showHeader to false, you need to put your own head and title tags in the page, like Case: {!aCase.CaseNumber} …content…
-
Serializing JSON from Apex Apex Class: public with sharing class jsonAccount { public string AccountNameList {get;set;} public jsonAccount() { list accList = [Select Id,Name From Account]; System.debug(JSON.serialize(accList)); AccountNameList = JSON.serialize(accList); } …
-
Source: http://bobbuzzard.blogspot.in/2010/09/visualforce-lookup.html
-
Source : http://www.codemeonce.com/2012/02/customize-ckeditor-on-forcecom.html
-
Here is the sample code for it: and here is the java script function