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'); |
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/include/CustomSplitAttachFolder.php | |
* | |
* UploadStream extension to add use of date named | |
* subfolders to ./upload directory. | |
* | |
* e.g. ./upload/2015/04/02/<MyApril2nd2015File.docRepresentedAsGUID> | |
* |
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
({ | |
/* Author: Angel Magaña -- cheleguanaco@cheleguanaco.com | |
* File: ./custom/modules/<Module>/clients/base/layouts/subpanels/subpanels.js | |
* | |
* Extended subpanels layout controller for hiding | |
* subpanels upon record load and based on parent record data | |
* | |
*/ | |
extendsFrom: 'SubpanelsLayout', |
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/<Module>/clients/base/views/record/record.js | |
Requires metadata for other view: ./custom/modules/<Module>/clients/base/views/<view>/<view>.php | |
*/ | |
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/modules/<Module>/clients/base/views/record/record.js | |
* | |
* Custom RecordView controller for automatically converting | |
* last_name value to upper when focus is lost | |
*/ | |
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/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/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
({ | |
/* 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. |