AnsweredAssumed Answered

How to extend merge-duplicates.js in modules

Question asked by Harald Kampen on Oct 10, 2016
Latest reply on Oct 11, 2016 by Hiren Darji



the goal is the combine each description instead of replacing in each module on duplicate merge.


The merge view is open and I click on save. In this case one idea is to send the ids of duplicated beans on save event of the primary bean. For example the request json on save should look like this:

{id: '1234-1234-1234-1234', mergeFromBeanList: ['2345-2345-2345-2345', '3456-3456-3456-3456'], ...}


Another idea is to combinde the descriptions inside of Javascript.


I found the code in /clients/base/views/merge-duplicates/merge-duplicates.js, but I have no idea how to extend this script. Can I extend it only in modules or also for the whole application?


Best regards