Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmarum-sugarcrm/8943655 to your computer and use it in GitHub Desktop.
Save mmarum-sugarcrm/8943655 to your computer and use it in GitHub Desktop.
Extending the a module's Record view in Sugar 7
({
extendsFrom: 'RecordView',
/**
* Some extra functionality
*/
doSomethingCool: function() {
},
_dispose: function() {
//additional stuff before calling the core create _dispose goes here
this._super('_dispose');
}
})
@visaolive
Copy link

I have some code implemented in Sugar 6 where we override the view with view.detail.php

On this view.detail.php, I added code that used Jquery to display a custom form.

In Sugar 7, is the record.js the equivalent of performing the same modification?

Thanks,

Emilio

@mmarum-sugarcrm
Copy link
Author

Yes, in Sugar 7 we unified the Details and Edit views that you know about in Sugar 6 into a single Record view.

@shajiuddin
Copy link

Hi,

Please help how to extend selection-list view. I need to apply a filter on selection list view

SugarCRM Professional 7.2.2

Regards

@cAstraea
Copy link

How would I add something to this view? This is just the javascript file. If i make for example a record.hbs it overwrites the default view... I just want to add more custom stuff only to the clients .hbs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment