You need to sign in to do that
Don't have an account?
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);
}
}
What problem are you hitting? Is your page not displayed, are there errors?
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.