You need to sign in to do that
Don't have an account?
krish@123
Iam able to dispaly only one record out of 4duplicate records.
kindly help for me
<apex:commandButton action="{!Next}" value="Check for Duplicates" status="status" reRender="duplicate"/>
<apex:outputPanel id="duplicate">
<apex:pageBlock title="Potential duplicates">
<apex:pagemessage strength="2" title="Error!!" severity="error" detail="This Record Already Exists !!!" rendered="{!errormsg}"/><!-- End of error message -->
<apex:pageblocktable rendered="{!NOT(ISNULL(existingcon))}" value="{!existingcon}" var="case" id="dup">
<apex:column headervalue="Select">
<apex:commandlink action="{!SelectDuplicates}">
<input type="radio" name="ContactSel"/>
</apex:commandlink>
</apex:column>
<apex:column headervalue="Name"> <apex:outputtext value="{!newcon.lastname}"/> </apex:column>
<apex:column headervalue="Description"> <apex:outputtext value="{!newcon.email}"/> </apex:column>
</apex:pageblocktable>
</apex:pageBlock> </apex:outputPanel>
public List<Contact> chkdup;
public Contact newcon= new Contact();
public contact getcon()
{
return con;
}
public contact getexistingcon()
{
if (chkdup!= NULL)
{
if(chkdup.size()>0)
return con;
else
return null;
}
else
return null;
}
public pagereference Next()
{
chkdup=[select id,Lastname,Email from Contact where Lastname=:con.Lastname ];
if(chkdup.size()>=0)
{
String tnum=con.Lastname;
return null;
}
else
{
return null;
}
}
Thanks
Please any body suggest me.I want to display duplicate records list on VF page. after click for duplicates button click...... Please find the below code
Iam able to dispaly only one record out of 4duplicate records.
kindly help for me
<apex:commandButton action="{!Next}" value="Check for Duplicates" status="status" reRender="duplicate"/>
<apex:outputPanel id="duplicate">
<apex:pageBlock title="Potential duplicates">
<apex:pagemessage strength="2" title="Error!!" severity="error" detail="This Record Already Exists !!!" rendered="{!errormsg}"/><!-- End of error message -->
<apex:pageblocktable rendered="{!NOT(ISNULL(existingcon))}" value="{!existingcon}" var="case" id="dup">
<apex:column headervalue="Select">
<apex:commandlink action="{!SelectDuplicates}">
<input type="radio" name="ContactSel"/>
</apex:commandlink>
</apex:column>
<apex:column headervalue="Name"> <apex:outputtext value="{!newcon.lastname}"/> </apex:column>
<apex:column headervalue="Description"> <apex:outputtext value="{!newcon.email}"/> </apex:column>
</apex:pageblocktable>
</apex:pageBlock> </apex:outputPanel>
public List<Contact> chkdup;
public Contact newcon= new Contact();
public contact getcon()
{
return con;
}
public contact getexistingcon()
{
if (chkdup!= NULL)
{
if(chkdup.size()>0)
return con;
else
return null;
}
else
return null;
}
public pagereference Next()
{
chkdup=[select id,Lastname,Email from Contact where Lastname=:con.Lastname ];
if(chkdup.size()>=0)
{
String tnum=con.Lastname;
return null;
}
else
{
return null;
}
}
Thanks
controller
page
All Answers
controller
page
Thanks for reply I got it.