You need to sign in to do that
Don't have an account?
Sree Salesforce
i got a small issue regarding wrapper class(i.e Invalid type: displaywrapper ).
<apex:page standardController="opportunity" extensions="wrapperclass">
<apex:form >
<apex:pageBlock >
<apex:pageBlockTable value="{!oppdata}" var="v">
<apex:column value="{!v.oppflag.name}"/>
<apex:column value="{!v.oppflag.CloseDate}"/>
<apex:column value="{!v.oppflag.Type}"/>
<apex:column value="{!v.oppflag.StageName}"/>
<apex:column value="{!v.oppflag.Amount}"/>
<apex:column >
<apex:inputCheckbox value="{!opp.oppflag}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
public class wrapperclass {
public list<displaywrapper> oppdata{get;set;}
public wrapperclass(ApexPages.StandardController controller) {
if(oppdata == null){
oppdata=new list<displaywrapper>();
for(opportunity o1:[select id,name,closedate,type,stagename,amount from opportunity]);
oppdata.add(new displaywrapper(o1,true));
}
}
public class diplaywrapper{
public opportunity oppflag{get;set;}
public boolean boo{get;set;}
public diplaywrapper(opportunity opp,boolean b1)
{
opp=oppflag;
b1=boo;
}
}
}
<apex:form >
<apex:pageBlock >
<apex:pageBlockTable value="{!oppdata}" var="v">
<apex:column value="{!v.oppflag.name}"/>
<apex:column value="{!v.oppflag.CloseDate}"/>
<apex:column value="{!v.oppflag.Type}"/>
<apex:column value="{!v.oppflag.StageName}"/>
<apex:column value="{!v.oppflag.Amount}"/>
<apex:column >
<apex:inputCheckbox value="{!opp.oppflag}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
public class wrapperclass {
public list<displaywrapper> oppdata{get;set;}
public wrapperclass(ApexPages.StandardController controller) {
if(oppdata == null){
oppdata=new list<displaywrapper>();
for(opportunity o1:[select id,name,closedate,type,stagename,amount from opportunity]);
oppdata.add(new displaywrapper(o1,true));
}
}
public class diplaywrapper{
public opportunity oppflag{get;set;}
public boolean boo{get;set;}
public diplaywrapper(opportunity opp,boolean b1)
{
opp=oppflag;
b1=boo;
}
}
}
Pls change the code lik this,
Mark it as best answer if its helps.
Thanks,
Praveen Murugesan
All Answers
// here you have written display
// but here you have written diplay
Pls change the code lik this,
Mark it as best answer if its helps.
Thanks,
Praveen Murugesan