+ Start a Discussion
hacksawblade16hacksawblade16 

display prospect fields with checkbox on a VF page

there is a convert button present on the prospect(Lead) page .When the user hits the convert button the fields of the prospect should be displayed on another   visual page along with the checkbox.How can i do this??

 

This is my code
.Where am i going wrong

 

 

 

 

<apex:page StandardController="Prospect__c" extensions="conversionrtestclass">

<apex:pageBlock >
<!--<apex:param name="id" value="{!id2}"/>-->
<apex:detail subject="{!id2}" />
</apex:pageblock>

<apex:pageBlock >
<apex:PageBlockSection title="People">
</apex:PageBlockSection>
<apex:pageBlockSection title="Household">
</apex:pageBlockSection>
<apex:pageBlockSection title="organisation">
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>

 

 

 

 

 

 

 

public with sharing class conversionrtestclass {
        
        Prospect__c  leadList =new Prospect__c();
        LeadDedupUtility leadUtility;
       //public Prospect__c  myLead;
        public Id id;
        public Id id2;
        
        public ID getid()
        {return id;}
      public ID getid2()
        {return id2;}
     
       /* public Prospect__c setmyLead()
        {
        return myLead;
        }*/
        public conversionrtestclass(ApexPages.StandardController stdController)
        {
        
                
                 leadUtility=new LeadDedupUtility();
                  //this.leadList  = ( Prospect__c )stdController.getRecord();
                // this.id= ApexPages.currentPage().getParameters().get(id);
                      this.id=(Id)stdController.getId();               
                      this.id2=leadUtility.getProspect(id);
              
        }


}

 

 

 

bob_buzzardbob_buzzard

What problem are you hitting?  Is your page not displayed, are there errors?

hacksawblade16hacksawblade16
i wasn't able to get the id passed to my controller. :). it is solved now..I have one new doubt how can i put checkboxes for ?? the outfield contains fields from my standard controller ..i need to attach those fields with checkboxes
bob_buzzardbob_buzzard

If this is additional data associated with the prospect, but not stored with it, then you'd use a wrapper class.  This is a custom class that contains the prospect itself and your additional data.