Force.com save problem:
Save error: Invalid field ver for SObject Verifier__c
Follwing is my code
Apex Class Code
public with sharing class verifierclass{ public string applicationId {get;set;}
public verifierclass(ApexPages.StandardController stdCtrl)
{
this.application=(Application__c)stdCtrl.getRecord();
lstVerifierWrapper=new List<verifierWrapper>();
lstVerifier =[SELECT Title__c, Signature__c, Residential_Address__c, Name, Id, Date_Of_Birth__c, Application__c
FROM Verifier__c
WHERE Application__c = : application.id];
verifier = new Verifier__c();
}public class verifierWrapper
{
public Integer ident {get; private set;}
public Verifier__c ver {get; set;}
public verifierWrapper(Integer inIdent,Verifier__c verifier)
{
ver=verifier;
ident=inIdent;
}
} public PageReference AddVerifier()
{
Verifier__c verifier;
for(Verifier__c c1 : lstVerifier)
{
verifier=c1;
verifier.Application__c = application.Id;
}
for (Integer idx=0; idx<addCount; idx++)
{
lstVerifierWrapper.add(new verifierWrapper(nextIdent++,verifier));
}
return null;
} public PageReference RemoveVerifier()
{
Integer toDelPos=-1;
for (Integer idx=0; idx<lstVerifierWrapper.size(); idx++)
{
if (lstVerifierWrapper[idx].ident==toDelIdent)
{
toDelPos=idx;
}
}
if (-1!=toDelPos)
{
lstVerifierWrapper.remove(toDelPos);
}
return null;
}}
Page Code:
<apex:outputPanel id="opVerifyingOfficer" rendered="{!(application.Verifying_Officer__c == 'Yes')}">
<apex:pageBlock id="pbVerifyingOfficerInfo" >
<apex:pageBlockSection columns="1"
id="pbsVerifierOfficerInfo"
title="Verifying Officer Details">
<apex:inputField value="{!verifier.Name}" />
<apex:inputField value="{!verifier.Title__c}" />
<apex:inputField value="{!verifier.Residential_Address__c}" />
<apex:inputField value="{!verifier.Date_Of_Birth__c}" />
<apex:inputField value="{!verifier.Signature__c}" />
</apex:pageBlockSection>
<apex:outputText value="Add Verifier"
style="font-weight:bold" />
<apex:commandButton value="Add" action="{!AddVerifier}"
rerender="pbsVerifyingOfficerInfo">
<apex:param name="addCount" value="1" assignTo="{!addCount}" />
</apex:commandButton>
<br />
<br />
<apex:repeat value="{!lstVerifierWrapper}"
var="verifier">
<apex:pageBlockSection columns="1"
id="pbsVerifierOfficerInfo"
title="Verifying Officer Details">
<apex:inputField value="{!verifier.ver.Name}" />
<apex:inputField value="{!verifier.ver.Title__c}" />
<apex:commandButton value="Remove"
action="{!RemoveVerifier}"
rerender="pbsVerifyingOfficerInfo">
<apex:param name="toDelIdent" value="{!verifier.ident}"
assignTo="{!toDelIdent}" />
</apex:commandButton>
</apex:pageBlockSection>
</apex:repeat>
</apex:pageBlock>
</apex:outputPanel>
save
method? What have you tried to fix the error?