AnsweredAssumed Answered

Custom editview not working on linked record

Question asked by Felippe Junger on Dec 8, 2017
Latest reply on Dec 15, 2017 by gkhanlarov

Hi,

 

I'm using a sugarcrm mobile sdk Version 6.0.0.

 

I've create a custom editview to work just in module 'Meetings'. It works when I access the record directly, left-menu => Meetings => Meeting => edit, example: http://localhost:9000/app/#Meetings/14956ea1-003e-4380-8924-0b8a2f3db1c7/edit. But when I tried to edit accessing the meeting via accounts, using the related tab, the customization look like not works.

 


Working: http://localhost:9000/app/#Meetings/6221a5b1-32c2-4465-9dfe-897cefcb3a6d
Not working: http://localhost:9000/app/#Accounts/ffffa6d8-9fe8-11e7-9aa3-0e52e634fa2a/link/meetings/6221a5b1-32c2-4465-9dfe-897cefcb3a6d/edit

 

On .js file, if I remove the module filter, the customization works for both, but it goes to globals and I want this customization working just to meetings module.

 

################## WORKS JUST TO DIRECT EDIT ###########################
const app = SUGAR.App,
customization = require('%app.core%/customization'),
edit_view = require('%app.views.edit%/edit-view');
var custom_view = customization.extend(edit_view, { onHeaderSaveClick, initialize });
customization.register( custom_view, { module: 'Meetings' } );
module.exports = custom_view;
################## WORKS JUST TO DIRECT EDIT ###########################

 

######## WORKS FOR BOTH BUT ITS A GLOBAL CUSTOMIZATION ##############
const app = SUGAR.App,
customization = require('%app.core%/customization'),
edit_view = require('%app.views.edit%/edit-view');
var custom_view = customization.extend(edit_view, { onHeaderSaveClick, initialize });
customization.register( custom_view );

 

module.exports = custom_view;
######## WORKS FOR BOTH BUT ITS A GLOBAL CUSTOMIZATION ##############

 

Could you help me to do an editview customization works just for meetings module and in both situations: accessing it via link# and directly record?

Outcomes