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
SugarClient client = new SugarClient(sugarUrl); | |
SugarSession session = client.getSugarSession("user", "password"); | |
SugarBean bean = client.getBean(session, "Opportunities", "...GUID..."); | |
System.out.println("Opportunity Name: " + bean.get("name")); |
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 | |
/* | |
* By installing or using this file, you are confirming on behalf of the entity | |
* subscribed to the SugarCRM Inc. product ("Company") that Company is bound by | |
* the SugarCRM Inc. Master Subscription Agreement ("MSA"), which is viewable at: | |
* http://www.sugarcrm.com/master-subscription-agreement | |
* | |
* If Company is not bound by the MSA, then by installing or using this file | |
* you are agreeing unconditionally that Company will be bound by the MSA and |
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 | |
/* | |
* By installing or using this file, you are confirming on behalf of the entity | |
* subscribed to the SugarCRM Inc. product ("Company") that Company is bound by | |
* the SugarCRM Inc. Master Subscription Agreement ("MSA"), which is viewable at: | |
* http://www.sugarcrm.com/master-subscription-agreement | |
* | |
* If Company is not bound by the MSA, then by installing or using this file | |
* you are agreeing unconditionally that Company will be bound by the MSA and |
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
({ | |
extendsFrom: 'RecordView', | |
/** | |
* Some extra functionality | |
*/ | |
doSomethingCool: function() { | |
}, | |
_dispose: 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
({ | |
//The below jsdoc was copied from base RecordView controller in Sugar 7.2 | |
extendsFrom: 'RecordView', | |
/** | |
* Called when current record is being duplicated to allow customization of | |
* fields that will be copied into new record. | |
* | |
* Override to setup the fields on this bean prior to being displayed in | |
* Create dialog. | |
* |
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
({ | |
... | |
/** | |
* Fire quick search | |
* @param {Event} e | |
*/ | |
throttledSearch: _.debounce(function(e) { | |
var newSearch = this.$el.val(); | |
if(this.currentSearch !== newSearch) { |
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
$viewdefs['base']['layout']['foo'] = array( | |
'components' => array( | |
array( | |
'layout' => 'header', //reference another definition | |
), | |
array( | |
'layout' => array( //directly include definition | |
'components' => array( | |
array( | |
'view' => 'title', //reference another definition |
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
$viewdefs['base']['layout']['foo'] = array( | |
'components' => array( | |
array( | |
'layout' => 'header', //reference another definition | |
), | |
array( | |
'layout' => array( //directly include definition | |
'components' => array( | |
array( | |
'view' => 'title', //reference another definition |
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
$viewdefs['base']['view']['foo'] = array( | |
'buttons' => array( //directly include definition | |
array( | |
'type' => 'button', | |
'name' => 'cancel', | |
), | |
array( | |
'type' => 'button', | |
'name' => 'save', | |
), |
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
$viewdefs['base']['layout']['foo'] = array( | |
'components' => array(), | |
'type' => 'foo', | |
), |
OlderNewer