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
{ | |
"grant_type":"password", | |
"client_id":"sugar", | |
"client_secret":"", | |
"username":"admin", | |
"password":"password", | |
"platform":"myspecialapp" // change 'myspecialapp' to whatever you want to refer to your app as | |
} |
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
initialize: function(options) { | |
this._super("initialize", arguments); | |
this.context.on('button:pm_record_reports:click', this.pmRecordReports, 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
<?php | |
require_once('clients/base/views/record/record.php'); | |
foreach($viewdefs['base']['view']['record']['buttons'] as &$set){ | |
if( $set['type'] == 'actiondropdown' && $set['name'] == 'main_dropdown'){ | |
$set['buttons'][] = array( | |
'type' => 'rowaction', | |
'event' => 'button:pm_record_reports:click', | |
'name' => 'pm_record_reports', |
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 | |
require_once('clients/base/layouts/record/record.php'); | |
if(isset($viewdefs['base']['layout']['record']['components'])){ | |
foreach($viewdefs['base']['layout']['record']['components'] as &$subArray){ | |
if(isset($subArray['layout']['components'])){ | |
foreach($subArray['layout']['components'] as &$subsubArray){ | |
if(isset($subsubArray['layout']['components'])){ | |
$subsubArray['layout']['components'][] = array( | |
'layout' => 'pm-record-logic', |
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 | |
$viewdefs['base']['layout']['pm-record-logic'] = array( | |
'type' => 'simple', | |
'components' => array( | |
array( | |
'view' => 'pm-record-logic', | |
), | |
), | |
); |
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
({ | |
className: 'pm-record-logic tcenter', | |
initialize: function(options) { | |
this._super("initialize", arguments); | |
this.context.on('button:pm_record_reports:click', this.pmRecordReports, this); | |
}, | |
pmRecordReports: function() { | |
var object_id = this.model.get('id'); | |
var object_name = this.model.attributes._module; | |
app.api.call('GET', app.api.buildURL('PM_ProcessManager/' + object_id + '/record_reports/' + object_name), null, { |
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
<input ... width="6" maxlength="20" /> |
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
if ($bean->fetched_row['my_field'] !== $bean->my_field) { | |
// Do custom logic | |
} |
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 | |
require_once('modules/SugarFeed/feedLogicBase.php'); | |
class NoteFeed extends FeedLogicBase | |
{ | |
public $module = 'notes'; | |
public function pushFeed($bean, $event, $arguments) | |
{ |
OlderNewer