This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
/* Author: Angel Magaña -- cheleguanaco@cheleguanaco.com | |
* File: ./custom/modules/Contacts/clients/base/views/record/record.js | |
* | |
* Extended RecordView controller for applying custom | |
* RecordView metadata at initialize time (Sugar 7.2+) | |
* | |
*/ | |
extendsFrom: 'RecordView', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
/* Author: Angel Magaña -- cheleguanaco@cheleguanaco.com | |
* File: ./custom/clients/base/views/subpanel-list/subpanel-list.js | |
* | |
* Extended Subpanel List controller to suppress "Edit" functionality | |
* on "Calls" subpanel throughout Sugar (Sugar 7.2+) | |
* | |
*/ | |
extendsFrom: 'SubpanelListView', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
/* Author: Angel Magaña -- cheleguanaco@cheleguanaco.com | |
* File: ./custom/clients/base/layouts/subpanels/subpanels.js | |
* | |
* Extended subpanels layout controller for hiding | |
* subpanels without data upon parent record load (Sugar 7.2+) | |
* | |
* This customization applies to all modules | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
/* file: ./custom/modules/Accounts/clients/base/views/create-actions/create-actions.js */ | |
extendsFrom: 'CreateView', | |
initialize: function(options){ | |
this._super('initialize', [options]); | |
/* this is where I set the default value for a given field, in this case | |
it is the value 'Angel Inc.' to the 'name' field in the Accounts module. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Author: Angel Magaña -- cheleguanaco@cheleguanaco.com | |
* File: ./custom/Extension/application/Ext/Language/en_us.quota_gauge.ext.php | |
* | |
* labels for 'Quota Metrics' custom gauge chart for Home Dashboard | |
* For Sugar Ent/Ult only as it is based off RLI data | |
*/ | |
$app_strings['LBL_QUOTA_GAUGE'] = 'Quota Metrics'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
/* Author: Angel Magaña -- cheleguanaco@cheleguanaco.com | |
* File: ./custom/modules/<Module>/clients/base/views/record/record.js | |
* | |
* Custom controller for RecordView demonstrating dynamic required attribute | |
* (leads module is used for the example) | |
*/ | |
extendsFrom: 'RecordView', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Author: Angel Magaña -- cheleguanaco@cheleguanaco.com | |
* File: ./custom/modules/Accounts/clients/base/api/StockApi.php | |
* | |
* Custom Sugar REST API endpoint demonstrating use of CURL to | |
* interact with an external web service. | |
* | |
* Useful for circumventing XSS issues one may experience when calling | |
* a web service via JavaScript (e.g. Sidecar controller) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
/* File: ./custom/clients/base/layouts/module-list/module-list.js */ | |
extendsFrom: 'ModuleListLayout', | |
_addDefaultMenus: function() { | |
var moduleList = app.metadata.getModuleNames({filter: 'display_tab', access: 'read'}); | |
moduleList.push('Custom1'); |
OlderNewer