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 RecordView controller for automatically converting | |
* last_name value to upper when focus is lost | |
*/ | |
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
({ | |
/* | |
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 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/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 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/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 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/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 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/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 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/Opportunities/clients/base/views/record/record.js | |
* | |
* Set all fields to read-only conditionally | |
*/ | |
extendsFrom: 'RecordView', | |
_renderHtml: function(){ |
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/Forecasts/clients/base/views/forecast-pipeline/forecast-pipeline.js | |
*/ | |
extendsFrom:"ForecastsForecastPipelineView", | |
initDashlet: function(view) { | |
this._super('initDashlet', [view]); | |
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/<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 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/conversion-stats/conversion-stats.js | |
* | |
* controller for 'Monthly Lead Conversion Stats' custom pie chart | |
*/ | |
plugins: ['Dashlet', 'Chart'], | |
className: 'conversion-stats', | |