Play Games

Wednesday, April 29, 2015

Search classes,visualforce pages,triggers,custom objects etc in your instance easily.


If you want to do modifications in class for example, you need to go setup--> classes --> search all classes and then edit the class.It takes a lot of time.
In Google chrome,we have a plugin which helps searching a class  or page easier.
Use this plugin,really very useful.

How to access map values in visualforce page

step 1) Create apex controller as shown below.

public class mapcontroller {
 
    public Map<id,contact> conmap{get;set;}
 
    public  mapcontroller(){
        conmap=new Map<id,contact>();
        for(contact con:[select id,name from contact]){
            conmap.put(con.Id,con);
        }
    }
 
}

Friday, April 24, 2015

Field Set in Salesforce

A field set is a grouping of fields.You can dynamically display group of fields in visualforce page.
For example, you could have a field set that contains fields describing a user's first name, middle name, last name, and business title.
If the page is added to a managed package, administrators can add, remove, or reorder fields in a field set to modify the fields presented on the Visualforce page without modifying any code.

steps:
1) Create a Field Set(for example in account object)

Thursday, April 23, 2015

Salesforce Org to Salesforce Org Integration using soap api(Partner wsdl)



Steps:

1) Download the partner wsdl of one org(destination).
setup --> Develop --> api --> Click on Generate Partner WSDL.