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( | |
array( | |
'type' => 'button', | |
'name' => 'save', | |
), | |
), | |
'name' => 'bar', | |
), |
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', | |
'name' => 'bar', | |
), |
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(), | |
'type' => 'foo', | |
'name' => 'bar', | |
'template' => 'detail', | |
), |
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 | |
// created: 2015-06-05 10:27:18 | |
$dictionary['Lead']['fields']['next_step_c']['duplicate_merge_dom_value']=0; | |
$dictionary['Lead']['fields']['next_step_c']['labelValue']='Next Step'; | |
$dictionary['Lead']['fields']['next_step_c']['full_text_search']=array ( | |
'boost' => '0', | |
'enabled' => false, | |
); | |
$dictionary['Lead']['fields']['next_step_c']['calculated']='1'; | |
$dictionary['Lead']['fields']['next_step_c']['formula']='ifElse(equal(count($tasks),0),"You must create a follow up Task for this Lead!",concat("Complete ",toString(related($tasks,"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 | |
require_once 'clients/base/api/FilterApi.php'; | |
/** | |
* Class MobileContractsMobileFilterApi | |
* | |
* Tested with Sugar 7.6 | |
* | |
* Example of how to build a simple proxy API that can be used to make API requests to one module pull data from another module. |
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 | |
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | |
require_once 'clients/mobile/api/OAuth2MobileApi.php'; | |
/** | |
* Example of how to override the core OAuth2MobileApi class in order to alter SugarCRM Mobile authentication behavior | |
**/ | |
class RestrictedOAuth2MobileApi extends OAuth2MobileApi { |
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 | |
if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | |
/** | |
* Example Mobile API Logic Hooks class | |
**/ | |
class MobileApiLogicHook | |
{ | |
/** |
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 | |
/** | |
* Metadata for the Case Count by Status example dashlet view | |
* | |
* This dashlet is only allowed to appear on the Case module's list view | |
* which is also known as the 'records' layout. | |
*/ | |
$viewdefs['base']['view']['case-count-by-status'] = array( | |
'dashlets' => array( |
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
/** | |
* Case Count by Status example dashlet controller | |
* | |
* Controller logic watches the current collection on display and updates the | |
* dashlet automatically whenever the current collection changes. | |
* | |
* This is a simple example of a dashlet for List Views in Sugar 7.x. | |
* | |
**/ | |
({ |