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 | |
// 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
$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
$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( | |
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', | |
), |
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( | |
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 |