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/Forecasts/clients/base/views/forecast-pipeline/forecast-pipeline.js | |
*/ | |
extendsFrom:"ForecastsForecastPipelineView", | |
initDashlet: function(view) { | |
this._super('initDashlet', [view]); | |
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/layouts/filter/filter.js */ | |
extendsFrom: 'FilterLayout', | |
applyFilter: function(query, dynamicFilterDef) { | |
var customFilterDef = [{'$or':[{'billing_address_city':{'$starts':query}},{'name':{'$starts':query}}]}]; | |
// TODO: getRelevantContextList needs to be refactored to handle filterpanels in drawer layouts, | |
// as it will return the global context instead of filtering a list view within the drawer context. | |
// As a result, this flag is needed to prevent filtering on the global context. |
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/views/record/record.js */ | |
extendsFrom: 'RecordView', | |
_render: function(){ | |
var self = this; | |
this._super('_render'); | |
_.each(this.noEditFields, function(field){ |
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
({ | |
/* File: ./custom/modules/Leads/clients/base/views/record/record.js */ | |
extendsFrom: 'RecordView', | |
initialize: function(options) { | |
this._super('initialize', [options]); | |
this.model.on('data:sync:complete', this.showAlert, this); | |
}, |
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 */ | |
extendsFrom: 'RecordView', | |
initialize: function(options){ | |
/* Check if related module has records linked to current record | |
* You need the "link" field name from vardefs for the specific | |
* subpanel you wish to check. | |
* |
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 | |
/* File: ./custom/include/externalAPI/Marketo/LogicHookController.php */ | |
/* | |
* Copyright (c) 2014-2015 SugarCRM Inc. This product is licensed by SugarCRM | |
* pursuant to the terms of the End User License Agreement available at | |
* http://support.sugarcrm.com/06_Customer_Center/10_Master_Subscription_Agreements/10_Marketo/ | |
*/ |
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 | |
* | |
* 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 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: <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> | |
* | |
*/ |