• Sunny Mohla
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hi,

I need to create a VF Page which displays accounts in a similar way as displayed at the time of Account merge like Account field and radiobutton infront of it.

What i need to do is to create custom Account Merge functionality with 3-4 Accounts displayed in a similar way. Has anyone attempted such scenario or can give me a headway.

Regards
I have a custom setting which saves three field names of lets say contact object. I want to update value of all those fields to null which are store in my custom setting. following is the code that i'm writing.

List<Field_Name__c> mycustomsetting = Field_Name__c.getAll().values();
system.debug('List of custom setting'  + mycustomsetting.size());
List<contact> mycontacts = [select id, name,birthdate, Languages__c, Level__c from contact];
string fieldname = '';
for(contact Con : mycontacts)
{
    for(integer i=0; i<mycustomsetting.size();i++)
    {
        system.debug(i+ ' :custom setting : ' + mycustomsetting[i].Field__c);   
        fieldname = mycustomsetting[i].Field__c;
        Con. + fieldname = null; - This is what i'm trying to do but it does not works
        Con.birthdate = null; -- This is what needs to be done via custom setting
    }
    update Con;
}

I have created custom setting as "Field_Name__c" and this contains field as "Field__c" which contains contact field API names.

Any help will be appreciated
I have a custom setting which saves three field names of lets say contact object. I want to update value of all those fields to null which are store in my custom setting. following is the code that i'm writing.

List<Field_Name__c> mycustomsetting = Field_Name__c.getAll().values();
system.debug('List of custom setting'  + mycustomsetting.size());
List<contact> mycontacts = [select id, name,birthdate, Languages__c, Level__c from contact];
string fieldname = '';
for(contact Con : mycontacts)
{
    for(integer i=0; i<mycustomsetting.size();i++)
    {
        system.debug(i+ ' :custom setting : ' + mycustomsetting[i].Field__c);   
        fieldname = mycustomsetting[i].Field__c;
        Con. + fieldname = null; - This is what i'm trying to do but it does not works
        Con.birthdate = null; -- This is what needs to be done via custom setting
    }
    update Con;
}

I have created custom setting as "Field_Name__c" and this contains field as "Field__c" which contains contact field API names.

Any help will be appreciated