Results 1 to 10 of 10

Thread: Enable duplicate merge for custom module

  1. #1
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Enable duplicate merge for custom module

    How can I enable duplicate merge for custom modules? Especially for the standard "name" field? It's not available...

    For another field I tried this one in vardefs:
    duplicate_merge' => 'enabled',
    'duplicate_merge_dom_value' => '0',

    and this one in /custom/Extension/modules/new_module/Ext/Vardefs

    $dictionary['do01_links']['fields']['whatever']['duplicate_merge'] = true;

    but to no avail. What do I miss?

    thx
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  2. #2
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: Enable duplicate merge for custom module

    bump and some more (not to be too short)
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  3. #3
    whiteFwolf is offline Member
    Join Date
    Jun 2008
    Posts
    18

    Default Re: Enable duplicate merge for custom module

    Ah I have the same problem! Did you manage to solve it?

  4. #4
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Enable duplicate merge for custom module

    Use Studio to create your custom fields for use in module builder ... in studio you get the option of turning duplicate merge on or off .... you can also hand craft ... but go studio first

  5. #5
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Enable duplicate merge for custom module

    Aaaaaggggg ... just noticed who the original thread poster was ... apologies Roblaus ..... no intention to patronise ... read the thread header and dived in

  6. #6
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: Enable duplicate merge for custom module

    No problem on this side, happens to me all the time.

    Need to re-check this anyway - I am kind of lost when it comes to module builder outcome (even though I make sure that it is NOT deployed directly). None of the standard methods work. But I am not a programmer so who knows.
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  7. #7
    darcy.rippon is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    121

    Default Re: Enable duplicate merge for custom module

    Did you try to repair / rebuild from the admin area??

    I found that the custom modules in 5.2 had the ability to merge duplicates from the detail view, but not from the list view of the module itself.

    I had to change the disabled fields to enabled. I left the DOM value as 0. I never went into the dictionary to change anything after I changed the fields to merge enabled. But I did do the repair / rebuild before I tried to merge the custom modules fields.

    Again, I'm on 5.2h CE on RHEL, Apache, mysql, php....

  8. #8
    darcy.rippon is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    121

    Default Re: Enable duplicate merge for custom module

    My next question is, how do you enable the Merge Duplicates functionality from the list view of the module? Similar to how Leads and Opportunities works.... Haven't figured that out yet...

  9. #9
    darcy.rippon is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    121

    Default Re: Enable duplicate merge for custom module

    to put the "Merge Duplicates" button on the list view of the custom module, I went into <sugarroot>/modules/custom_module/ and edited the vardefs.php file so that it had the line 'merge_duplicates'=>true at the beginning of the dictionary array:

    PHP Code:
    $dictionary['custom_module'] = array(
            
    'table'=>'custom_module',
            
    'audited'=>true,
            
    'duplicate_merge'=>true,
            
    'fields'=>array (...)
    ); 
    Then did a quick repair / rebuild from the admin page. And it worked.

    I'll make it upgrade safe later, just needed to get the button on there for my client...

    This is for 5.2h SugarCE on RHEL, Apache...

  10. #10
    faze is offline Junior Member
    Join Date
    Mar 2011
    Posts
    2

    Default Re: Enable duplicate merge for custom module

    roblaus,

    Did you manage to solve this? I am having the same problem, can get the merge function to appear on list view as shown by darcy but not on the detailed view which shows the "Find Duplicates" option

    which file in the /custom/Extension/modules/new_module/Ext/Vardefs path needs updating?

    Would be greatful if either of you can put me in the right track

    Using v 5.5.3 also new to SugarCRM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Enable a Navigation tab for a custom module?
    By gregm in forum Developer Help
    Replies: 3
    Last Post: 2009-05-08, 01:52 PM
  2. How to add Merge duplicate option for a new module?
    By amrutha in forum Developer Help
    Replies: 0
    Last Post: 2009-03-26, 07:08 AM
  3. How to add a custom field in Merge Duplicate
    By mmisra in forum Developer Help
    Replies: 1
    Last Post: 2008-11-19, 04:36 AM
  4. Duplicate Merge Custom Fields
    By ttrotter in forum Help
    Replies: 1
    Last Post: 2008-03-22, 07:13 PM
  5. Replies: 2
    Last Post: 2007-01-18, 05:44 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •