AnsweredAssumed Answered

Extending Sugar Accounts Record View

Question asked by jclark@enhanced.co.uk on Apr 27, 2015
Latest reply on Jun 4, 2015 by jclark@enhanced.co.uk
I'm struggling with what I'm sure is very very simple indeed!!

My final goal is to Append a table with some data in it at the bottom of the Accounts record view.

Upon reading this article "what you need can be accomplished using a single file".

http://developer.sugarcrm.com/2014/02/10/extending-sugar-7-record-view/

I have the following code, but am not seeing anything in the console logs in Chrome.

({    extendsFrom: 'RecordView',
 
    /**
     * Some extra functionality
     */
    initialize: function (options) {
        console.log('hi jon');
        this._super('initialize', [options]);
    },
 
    _dispose: function() {
        //additional stuff before calling the core create _dispose goes here
        this._super('_dispose');
    }
})

This file is in custom/modules/Accounts/clients/base/views/record/record.js

Yes - I have done a repair and rebuild!!

Can someone tell me where I've gone wrong!?

Thanks Loads,
Jon

Sugar version: 7.2.1 Ultimate

Outcomes