AnsweredAssumed Answered

Custom views problem in Sugar Mobile SDK

Question asked by Matt Marum Employee on Mar 12, 2018
Latest reply on Mar 16, 2018 by Eugene Bychkov

From:  Dawid Zaroda



I am writing with regard to bug which we found in Sugar Mobile SDK. So, for example, in Accounts module we got customization like this:


const app = SUGAR.App;
const customization = require( '%app.core%/customization.js' );
const DetailView = require( '%app.views.detail%/detail-view.js' );

const AccountsDetailView = customization.extend( DetailView, ,
showInfoAlert: function () { 'account_info_alert', {
autoClose: true,
autoCloseDelay: 5000,
messages: 'It\'s an inform message',
} );
} );
customization.register( AccountsDetailView, );
module.exports = AccountsDetailView;


When we enter Account directly from list view eveything is ok, alert appears. But if we enter from subpanel list view (for example - Member Organizations under Account detail view), any customization is just ignored, alert will not appear. Is there a way to circumvent this problem?


SDK version:

SugarCRM version: ENT