View cw7.cs
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
/* SugarCRM v7 REST API Wrapper | |
* | |
* Date: May 13, 2014 | |
* | |
* Author: Angel Magaña | |
* | |
* Contact: cheleguanaco[at]cheleguanaco.com | |
* cheleguanaco.com | |
* | |
* |
View MyCustomApi.php
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/clients/base/api/MyCustomApi.php */ | |
class MyCustomApi extends SugarApi { | |
public function registerApiRest() { | |
return array( | |
'myCustomMethod' => array( | |
'reqType' => 'GET', |
View record.js
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/Opportunities/clients/base/views/record/record.js | |
* | |
* Set all fields to read-only conditionally | |
*/ | |
extendsFrom: 'RecordView', | |
_renderHtml: function(){ |
View email.ext.php
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/Extension/modules/Accounts/Ext/LogicHooks/email.ext.php */ | |
$hook_array['after_save'][] = array( | |
102, | |
'Send email test', | |
'custom/modules/Accounts/pmseSend.php', | |
'emailTest', | |
'emailTest' |
View file.js
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/fields/file/file.js */ | |
extendsFrom: 'FileField', | |
_doValidateFileError: function(fields, errors, callback, resp) { | |
app.alert.dismiss('upload'); | |
app.logger.fatal(resp); |
View record.js
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', | |
View record.js
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/record/record.js */ | |
extendsFrom: 'RecordView', | |
initialize: function(options){ | |
this._super('initialize', [options]); | |
this.model.on('data:sync:complete', this.styleType, this); | |
}, |
View conversion-stats.js
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/conversion-stats/conversion-stats.js | |
* | |
* controller for 'Monthly Lead Conversion Stats' custom pie chart | |
*/ | |
plugins: ['Dashlet', 'Chart'], | |
className: 'conversion-stats', | |
NewerOlder