Hello
How to call merge function in custom page ?
Hello
How to call merge function in custom page ?
Hi Bhavin Patel
What you want to merge, if you mean arrays then we have predefined array functions in php like array_merge() and array_combine().
If you want to do it through Studio, do it with concat() function. This will combine any number of strings separated by commas into a single string
Formula:
concat($first_name, " ", $last_name)
also
concat($first_name, " ", $last_name, "is the ",$title, " for testing.")
Path for this is Studio > Module > Fields. check Calculated Value and click on Edit formula
Hope this Helps
Best Regards
S Ramana Raju
Hi Bhavin Patel
What you want to merge, if you mean arrays then we have predefined array functions in php like array_merge() and array_combine().
If you want to do it through Studio, do it with concat() function. This will combine any number of strings separated by commas into a single string
Formula:
concat($first_name, " ", $last_name)
also
concat($first_name, " ", $last_name, "is the ",$title, " for testing.")
Path for this is Studio > Module > Fields. check Calculated Value and click on Edit formula
Hope this Helps
Best Regards
S Ramana Raju
Hello Ramana Raju Santhana
Thanks for reply.
I want to merge duplicate records from my custom page.
how can i use SugarCRM merge functionality in my page.
Hello,
I have successfully open the Merge Screen from the code mentioned by Tevfik. When the merge screen is open my primary record is display as secondary record. How can we set the correct primary record into merge process ? Following is my code to open the Merge screen.
var records = app.data.createBeanCollection("Contacts");
records.fetch({
'filter':[{
"id": {
'$in':[
primaryRecordId,
secondaryRecordId,
]
},
}],
success: function (collection) {
bwcView.mergeDuplicates(collection);
},
complete: function () {
bwcView.context.set("module", previusContextModule);
}
But when the merge screen is open Primary Record is display on right side. It should actually comes on the left side.
Anyone has idea how we can make the primary record to be display on left side ? Any help is appreciated.