This file contains hidden or 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 - [email protected] | |
* | |
* This Gist can be used within a Sugar 7 Controller to retrieve a user's | |
* security Roles | |
* | |
*/ | |
/* To retrieve the Roles, we create a User object then | |
* retrieve the User's related Role records via the default Users <--> Roles relationship | |
*/ |
This file contains hidden or 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 -- [email protected] | |
* 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 hidden or 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 -- [email protected] | |
* 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 hidden or 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 - [email protected] | |
* File: <sugar_root>/es_test.php | |
* | |
* Executes simple Elasticsearch query using | |
* Elasticsearch params from Sugar config files | |
* Usage: http://<sugar_url>/es_test.php?term=<your_search_term> | |
* | |
*/ |
This file contains hidden or 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 -- [email protected] | |
* 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 hidden or 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 hidden or 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 -- [email protected] | |
* 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 hidden or 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 -- [email protected] | |
* 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', |
OlderNewer