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
<?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
<?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 | |
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
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
{ | |
"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
...abbreviated | |
<div class="dropdown-menu scroll pull-right"> | |
<ul role="menu"> | |
<li class="profileactions-profile"><a href="{{profileUrl}}">{{str "LBL_PROFILE"}}</a></li> | |
<li class="profileactions-employees"><a href="{{employeesUrl}}">{{str "LBL_EMPLOYEES"}}</a></li> | |
{{#if showAdmin}} | |
<li class="administration"><a href="#Administration">{{str "LBL_ADMIN"}}</a></li> | |
{{/if}} | |
<li class="profileactions-about"><a href="#bwc/index.php?module=Home&action=About">{{str "LNK_ABOUT"}}</a></li> | |
<li class="profileactions-logout"><a href="#logout/?clear=1">{{str "LBL_LOGOUT"}}</a></li> |
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 | |
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | |
/* | |
* Copyright (c) 2013, John Mertic | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without modification, | |
* are permitted provided that the following conditions are met: | |
* | |
* * Redistributions of source code must retain the above copyright notice, 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 | |
function link_record_beans($bean1, $bean2){ | |
$m1 = $bean1->module_dir; | |
$m2 = $bean2->module_dir; | |
$rel=getRelationshipByModules($m1, $m2); //see link to previous post for this function | |
if($rel !== FALSE){ | |
if($rel[1] == $m1){ | |
$class = $bean1->object_name; | |
$id = $bean1->id; |
NewerOlder