• chanti k
  • NEWBIE
  • 5 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 52
    Questions
  • 5
    Replies
HI All,

I have 3 visualforce pages. like V1, V2 and V3 Pages . Now my requirement is V1 page and V2 pages move to V3 Page (Entire the data from V1 , V2 to V3 Page.) how to we can achive this .pls give me with example code . 

Kindly help on this. 
Hi All,

i want display the 3 fields whenever select the value of picklist in visualforce page? how to w e can achive this.

Example with code..this is very helpfull for me.
pls help me..
 
Hi ,

Below is my code for the apex class.Could you please help me .
public class EmailMessage {

    public String emailTo {get;set;}
    public String emailCc {get;set;}
    public String subject {get;set;}
    public String body {get;set;}
    
    private final Lead lead;

    public PageReference cancel() {
        return null;
    }

     public EmailMessage() {
     list <lead> l= [select Description, ID from Lead where id = :ApexPages.currentPage().getParameters().get('id')];
       subject = lead.Description;
          } 
   
    public void sendEmail() {
        
        //create a mail object to send email 
        Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
        
        //string to hold To Addresses
        if (emailTo != '') {
            String[] toaddress = (new String[]{emailTo});
            //set email properties 
            mail.setSubject(subject);
            mail.setUseSignature(true);
            mail.setPlainTextBody(body); 
            mail.setTargetObjectID(lead.id);
            mail.setToAddresses(toaddress);

         if (emailCc != '') {
            String[] ccaddress = (new String[] {emailCc});
            mail.setCcAddresses(ccaddress);
            }
    
            // send the email
            Messaging.SendEmailResult [] r = Messaging.sendEmail(new Messaging.SingleEmailMessage[] {mail});  
            
            lead.status = 'Email Sent';
            Update lead;
        }           
     }   
 }
Chanti,